-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
None
-
beta3
-
sparc
-
solaris_7
If you hide a focus cycle root with a child that has focus, focus will be lost. I believe this is happening because nextFocusHelper only looks at the first focus cycle root ancestor, which at this point will not be visible. I've attached a test case of this. The frame contains a button and a text field. The text field is in a jpanel that has is a focus cycle root. If you click in the text field, then click the button, setVisible(false) will be invoked on the panel. At this point you'll see that null is printed out to the console every second (the null is a result of asking the KeyboardFocusManager for its current focus owner).