Details
-
Type:
Bug
-
Status: Open
-
Priority:
P4
-
Resolution: Unresolved
-
Affects Version/s: 6u2
-
Fix Version/s: None
-
Component/s: client-libs
-
Labels:
-
Subcomponent:
-
Understanding:Fix Understood
-
CPU:generic
-
OS:generic
Description
When the component is removed from a Container and later added there, nothing happens.
Please see attached java source for demonstration.
Initially three test components are created, then using a button they are changed in the BorderLayout.CENTER.
First try it as is. You will get "Test component 1", "Test component 2" and "Test component 3".
Then change line 70 to:
boolean setBounds = true;
and run again. This time the labels will cycle as you click infinitely.
I was able to reproduce it on 1.6.0_02 and 1.5.0_12 on linux and windows.
Please see attached java source for demonstration.
Initially three test components are created, then using a button they are changed in the BorderLayout.CENTER.
First try it as is. You will get "Test component 1", "Test component 2" and "Test component 3".
Then change line 70 to:
boolean setBounds = true;
and run again. This time the labels will cycle as you click infinitely.
I was able to reproduce it on 1.6.0_02 and 1.5.0_12 on linux and windows.
Attachments
Issue Links
- relates to
-
JDK-6332772 update Component#remove() javadoc to reflect need to call revalidate()
-
- Resolved
-