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.
Created attachment 124796 [details] Example of collapsed window As seen in the attached image, any action which involves a dialogue box in Netbeans results in a collapsed window being shown. In order to use it, I have to drag it. On windows with no options (e.g. About Netbeans) I cannot drag the window at all and as a result must kill the IDE
It appears as though the issue only occurs on a dual-screen monitor setup when displayed on the secondary screen. When I move Netbeans over to my primary screen, dialogue boxes are correctly expanded
Please provide JDK, OS and NetBeans version info and reopen, thanks.
Product Version: NetBeans IDE 7.2 (Build 201207171143) Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01 System: Linux version 3.2.0-31-generic running on amd64; UTF-8; en_GB (nb)
This is actually a bug in JDK 7 implementation on Linux. If there's dual screen setup and the bounds of the first display are e.g. 0x0x1024x724 and the bounds of the secondary display are e.g. 1024x0x1024x724 (i.e. the secondary display is positioned to right of the primary one) then java.awt.Toolkit.getScreenInsets() returns left insets of 1024. On MS Windows the left insets are 0. Because of the wrong insets wrong usable display area has been calculated so some dialog windows use scroll pane to display their content so they have wrong initial size. I've added a workaround in core-main 298fda94fa08
*** Bug 213852 has been marked as a duplicate of this bug. ***
*** Bug 216274 has been marked as a duplicate of this bug. ***
*** Bug 211885 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201210030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/298fda94fa08 User: S. Aubrecht <saubrecht@netbeans.org> Log: #218895 - invalid screen insets in dual screen setup on Linux
Marking fixed in 7.3. Though the JDK bug will be filed anyway.
JDK bug filed internally as JDK-8000360 into the new Jira system. (https://blogs.oracle.com/darcy/entry/milestone_jira_system_of_record)
Reassigning back to saubrecht for backport to 7.2.1.
QA, please verify the fix, thanks.
I was able to reproduce with older dev builds on Ubuntu w/ dual screen, but I'm not able to reproduce now with latest daily, verified. Please backport.
release72 27187e3f83a4
Integrated into 'releases', will be available in build *201210100934* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/27187e3f83a4 User: S. Aubrecht <saubrecht@netbeans.org> Log: #218895 - invalid screen insets in dual screen setup on Linux (transplanted from 298fda94fa080de854fe0368dd792d12bf8c0b93)
I looked up "getScreenInsets" usage across the Netbeans sources. I noticed that there are two "Utilities" classes providing public static Rectangle getUsableScreenBounds(GraphicsConfiguration gconf) Only one of them got the fix for this issue: core-main/openide.util/src/org/openide/util/Utilities.java while the one in core-main/o.n.swing.tabcontrol/beanstubs/org/openide/util/Utilities.java didn't. I am not familar with the module approach of Netbeans, so I can not determine if the redundancy is a good approach. At least both methods should be kept in sync.
(In reply to comment #16) > I looked up "getScreenInsets" usage across the Netbeans sources. I noticed that > there are two "Utilities" classes providing > public static Rectangle getUsableScreenBounds(GraphicsConfiguration gconf) > > Only one of them got the fix for this issue: > core-main/openide.util/src/org/openide/util/Utilities.java > while the one in > core-main/o.n.swing.tabcontrol/beanstubs/org/openide/util/Utilities.java > didn't. The class in tabcontrol module isn't part of NetBeans distribution, it's used only when the module is built as a standalone JAR (to be used in a Swing app).