This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 214056 - Main window always resized to original (after installation) size even though it was maximized when closing
Summary: Main window always resized to original (after installation) size even though ...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2012-06-12 15:39 UTC by host
Modified: 2012-06-20 04:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description host 2012-06-12 15:39:23 UTC
Working with the latest NB nightly build on JDK 7u4 on OS X Lion.

I maximize the main windows of NB and then close NB. Now when I restart NB then the window size is not maximized anymore (as it used to be before with NB). Instead it has (seemingly) the size of directly after installation.
Comment 1 Petr Somol 2012-06-13 08:43:02 UTC
Standa, please evaluate or reassign..
Comment 2 Stanislav Aubrecht 2012-06-13 10:06:56 UTC
This is a regression in JDK 1.7.

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.
Comment 3 Antonin Nebuzelsky 2012-06-14 22:17:33 UTC
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7177173
Comment 4 Stanislav Aubrecht 2012-06-18 10:08:37 UTC
worked around in core-main 24192efd68b5
Comment 5 Quality Engineering 2012-06-20 04:37:22 UTC
Integrated into 'main-golden', will be available in build *201206200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/24192efd68b5
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #214056 - workaround for JDK bug 7177173