-
Bug
-
Resolution: Unresolved
-
P3
-
6u23, 7, 8, 9, 10, 11, 12, 13, 14, 15
-
Fix Understood
-
generic, x86, arm
-
generic, linux, linux_redhat_5.0
Frame.setMaximizedBounds restricts resizing of Frame to specified dimensions.
import java.awt.*;
import java.awt.event.*;
---Test.java---
public class Test {
public static void main(String[] args) {
Frame f = new Frame("test frame");
f.setMaximizedBounds(new Rectangle(0, 0, 400, 400));
f.setBounds(100, 100, 200, 200);
f.setVisible(true);
}
}
---Test.java---
1. Compile and run Test.java
2. Try to enlarge the frame. If Frame's maximum size is restricted with (400, 400), the bug is reproduced.
The bug is reproducible always with JDK6 b95 on several WMs, namely gnome & KDE
import java.awt.*;
import java.awt.event.*;
---Test.java---
public class Test {
public static void main(String[] args) {
Frame f = new Frame("test frame");
f.setMaximizedBounds(new Rectangle(0, 0, 400, 400));
f.setBounds(100, 100, 200, 200);
f.setVisible(true);
}
}
---Test.java---
1. Compile and run Test.java
2. Try to enlarge the frame. If Frame's maximum size is restricted with (400, 400), the bug is reproduced.
The bug is reproducible always with JDK6 b95 on several WMs, namely gnome & KDE
- relates to
-
JDK-6200438 Frame's size must be validated against maximized bounds when resizing, win32
- Closed