-
Enhancement
-
Resolution: Unresolved
-
P4
-
e6u21, 1.4.2, 5.0, 6, 7, 8, 8u221, 9, 10, 11, 12, 13, 14, 15, 16
-
generic, x86
-
generic, linux, windows_xp, windows_2008, windows_vista, windows_7
The CR 6383434 was closed as duplicate by mistake.
Look at the sample below:
import java.awt.*;
public class Test extends Frame {
public Test() {
setMinimumSize(new Dimension(400, 400));
setMaximumSize(new Dimension(400, 400));
setSize(400, 400);
setVisible(true);
}
public static void main(String[] args) {
new Test();
}
}
When I run the code above I cannot decrease the size of the Frame less than [400,400]. But at the same time I *can* increase the size of the Frame. It seems we have some inconsistency: setMinimumSize does work whereas setMaximumSize doesn't work.
The test is running on jdk6 b69.
Look at the sample below:
import java.awt.*;
public class Test extends Frame {
public Test() {
setMinimumSize(new Dimension(400, 400));
setMaximumSize(new Dimension(400, 400));
setSize(400, 400);
setVisible(true);
}
public static void main(String[] args) {
new Test();
}
}
When I run the code above I cannot decrease the size of the Frame less than [400,400]. But at the same time I *can* increase the size of the Frame. It seems we have some inconsistency: setMinimumSize does work whereas setMaximumSize doesn't work.
The test is running on jdk6 b69.
- relates to
-
JDK-6200438 Frame's size must be validated against maximized bounds when resizing, win32
- Closed
-
JDK-6383434 Frame.setMaximumSize() doesn't work
- Closed