CVSROOT: /cvsroot/classpath Module name: classpath Changes by: Lillian Angel <langel> 06/06/12 16:55:56
Modified files: . : ChangeLog javax/swing/plaf/basic: BasicTabbedPaneUI.java Log message: 2006-06-12 Lillian Angel <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicTabbedPaneUI.java (layoutContainer): Added missing selectedComponent assignment. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.7782&r2=1.7783 http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java?cvsroot=classpath&r1=1.47&r2=1.48 Patches: Index: ChangeLog =================================================================== RCS file: /cvsroot/classpath/classpath/ChangeLog,v retrieving revision 1.7782 retrieving revision 1.7783 diff -u -b -r1.7782 -r1.7783 --- ChangeLog 12 Jun 2006 16:08:26 -0000 1.7782 +++ ChangeLog 12 Jun 2006 16:55:55 -0000 1.7783 @@ -1,6 +1,11 @@ 2006-06-12 Lillian Angel <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicTabbedPaneUI.java + (layoutContainer): Added missing selectedComponent assignment. + +2006-06-12 Lillian Angel <[EMAIL PROTECTED]> + + * javax/swing/plaf/basic/BasicTabbedPaneUI.java (layoutContainer): Added check to prevent exception. 2006-06-12 Tom Tromey <[EMAIL PROTECTED]> Index: javax/swing/plaf/basic/BasicTabbedPaneUI.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java,v retrieving revision 1.47 retrieving revision 1.48 diff -u -b -r1.47 -r1.48 --- javax/swing/plaf/basic/BasicTabbedPaneUI.java 12 Jun 2006 16:08:27 -0000 1.47 +++ javax/swing/plaf/basic/BasicTabbedPaneUI.java 12 Jun 2006 16:55:56 -0000 1.48 @@ -535,7 +535,7 @@ Component selectedComponent = null; if (selectedIndex >= 0) - tabPane.getComponentAt(selectedIndex); + selectedComponent = tabPane.getComponentAt(selectedIndex); // The RI doesn't seem to change the component if the new selected // component == null. This is probably so that applications can add // one single component for every tab.