-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
5.0
-
x86
-
linux_sun
I have added a JComponent to a JWindow and Jcomponent contains some Volatile Images rendered on it. After making the window visible, I am trying to resize the window programmatically by calling setSize(). I have added a ComponentListener to JComponent to listen to comp resize events to re-create the images to the new size of the component. When calling setSize(), JWindow is actually resizing but the JComponent is not, unless i call JWindow.invalidate() and validate() explicitly after the resize.
This behavior is seen on SolSparc10-JDS / Linux-GNOME. The requirement of revalidating the window contents does not arise when I use JDialog or JFrame. JDialog /JFrame work fine even when I don't call invalidate /validate on the same platform.
This is reproducible at least since 1.5FCS. This is noticed only on XToolkit and Not reproducible on Win32. JWindow properly resizes the JComponent added to it on WinXP even when I don't call invalidate/validate explicitly.
I have attached a sample test. Execute the sample test. THe JWindow will be shown and will be resized automatically. If you don't see any COMPONENT_RESIZED event on the console or if the duke does not resize to the new window size, the bug is reproduced.
This behavior is seen on SolSparc10-JDS / Linux-GNOME. The requirement of revalidating the window contents does not arise when I use JDialog or JFrame. JDialog /JFrame work fine even when I don't call invalidate /validate on the same platform.
This is reproducible at least since 1.5FCS. This is noticed only on XToolkit and Not reproducible on Win32. JWindow properly resizes the JComponent added to it on WinXP even when I don't call invalidate/validate explicitly.
I have attached a sample test. Execute the sample test. THe JWindow will be shown and will be resized automatically. If you don't see any COMPONENT_RESIZED event on the console or if the duke does not resize to the new window size, the bug is reproduced.
- duplicates
-
JDK-6318144 PIT:Setting Min Size bigger than current size enlarges the window but fails to revalidate, Sol-CDE
-
- Closed
-