Details
-
Bug
-
Resolution: Fixed
-
P3
-
7u6
-
b20
-
x86
-
os_x
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2226507 | 8 | Anthony Petrov | P3 | Resolved | Fixed | b49 |
Description
Running the code below on JDK 1.6 correctly shows the window maximized across the whole screen. However when running on JDK 1.7 (update 6, build 13) the window is resized to given bounds instead of being maximized.
JFrame frame = new JFrame();
frame.setBounds(100, 300, 500, 500);
frame.setVisible(true);
frame.setExtendedState(frame.MAXIMIZED_BOTH);
Note that setting the extended state first and then making the main window visible fixes the problem.
http://netbeans.org/bugzilla/show_bug.cgi?id=214056
JFrame frame = new JFrame();
frame.setBounds(100, 300, 500, 500);
frame.setVisible(true);
frame.setExtendedState(frame.MAXIMIZED_BOTH);
Note that setting the extended state first and then making the main window visible fixes the problem.
http://netbeans.org/bugzilla/show_bug.cgi?id=214056
Attachments
Issue Links
- backported by
-
JDK-2226507 [macosx] JFrame.setExtendedState(JFrame.MAXIMIZED_BOTH) not working as expected in JDK 7
- Resolved
- relates to
-
JDK-7142091 [macosx] RFE: Refactoring of peer initialization/disposing
- Closed
-
JDK-7132809 [macosx] MAXIMIZED_BOTH set before setVisible(true) hides Frame
- Closed