Hi, this reverts yesterdays change to JTabbedPane.setSelectedIndex and adds a note.
ChangeLog:
2006-07-26 Robert Schuster <[EMAIL PROTECTED]>
* javax/swing/JTabbedPane.java:
(setSelectedIndex): Removed updating of component visibility status,
added note.
cya
Robert
Index: javax/swing/JTabbedPane.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JTabbedPane.java,v
retrieving revision 1.42
diff -u -r1.42 JTabbedPane.java
--- javax/swing/JTabbedPane.java 25 Jul 2006 19:20:28 -0000 1.42
+++ javax/swing/JTabbedPane.java 26 Jul 2006 13:59:24 -0000
@@ -991,16 +991,8 @@
if (index != getSelectedIndex())
{
// Hiding and showing the involved components
- // is important for the focus traversal mechanism
- // to report the correct source and destination
- // components.
- Component c = getSelectedComponent();
- if (c != null)
- c.setVisible(false);
-
+ // is done by the JTabbedPane's UI.
model.setSelectedIndex(index);
-
- getSelectedComponent().setVisible(true);
}
}
signature.asc
Description: OpenPGP digital signature
