-
Bug
-
Resolution: Duplicate
-
P3
-
6
-
x86
-
windows_xp
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.
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.
- duplicates
-
JDK-6200438 Frame's size must be validated against maximized bounds when resizing, win32
- Closed
- relates to
-
JDK-6464548 Reopen 6383434: Frame.setMaximumSize() doesn't work
- Open