-
Bug
-
Resolution: Fixed
-
P3
-
5.0, 6
-
b61
-
x86, sparc
-
linux_sun, solaris_10
-
Verified
The specification for setMinimumSize() claims that calling this method with a size smaller than the current resize would automatically enlarge the window to the specified min size. When I do this with respect to a 'Window' object, the window gets enlarged but the components inside the window are not re-aligned properly according to the new size. Basically it fails to invalidate and validate the components present inside the window.
This is reproducible only on SolarisSparc10-CDE and not reproducible on GNOME. This is reproducible only for java.awt.Window and not reproducible for Frame and Dialog. This is not reproducible on Win32 as well.
Here is the PIT build:
java version "1.6.0-internal"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-internal-df153228_24_aug_2005_01_49-b00)
Java HotSpot(TM) Server VM (build 1.6.0-ea-b48, mixed mode)
I have attached a sample test. Execute the sample test.
1. You would see a frame with 4 buttons.
2. Click on 'Show Dialog' button. A dialog will appear.
3. Click on 'Show Window' button. A window will appear.
4. Click on 'Toggle Min Size' button. The default min size will be reset.
5. Click on 'Reduce Size' button repeatedly a few times until Window becomes smaller than 100, 100.
6. Click on 'Toggle Min Size' button now. This would set the min size to 200, 200.
Now you would see window being resized to 200, 200 but components are still aligned within the old bounds.
This is reproducible only on SolarisSparc10-CDE and not reproducible on GNOME. This is reproducible only for java.awt.Window and not reproducible for Frame and Dialog. This is not reproducible on Win32 as well.
Here is the PIT build:
java version "1.6.0-internal"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-internal-df153228_24_aug_2005_01_49-b00)
Java HotSpot(TM) Server VM (build 1.6.0-ea-b48, mixed mode)
I have attached a sample test. Execute the sample test.
1. You would see a frame with 4 buttons.
2. Click on 'Show Dialog' button. A dialog will appear.
3. Click on 'Show Window' button. A window will appear.
4. Click on 'Toggle Min Size' button. The default min size will be reset.
5. Click on 'Reduce Size' button repeatedly a few times until Window becomes smaller than 100, 100.
6. Click on 'Toggle Min Size' button now. This would set the min size to 200, 200.
Now you would see window being resized to 200, 200 but components are still aligned within the old bounds.
- duplicates
-
JDK-6326164 JWindow does not resize the components inside when it gets resized programmatically, XToolkit
-
- Closed
-
- relates to
-
JDK-5025858 Resizing a decorated frame triggers componentResized event twice.
-
- Resolved
-
-
JDK-6323293 REGRESSION: api/java_awt/Event/FrmEventTests.html#FrmEventTest0008[FrmEventTest0008] failed
-
- Closed
-
-
JDK-4320050 Minimum size for java.awt.Frame is not being enforced.
-
- Resolved
-