-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
6u2
-
Fix Understood
-
generic
-
generic
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.
- relates to
-
JDK-6332772 update Component#remove() javadoc to reflect need to call revalidate()
-
- Resolved
-