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 222931

Summary: Dialogue boxes appearing halfway off window (middle of virtual desktop?) on 2 monitor Ubuntu
Product: platform Reporter: therefromhere <therefromhere>
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: mmirilovic
Priority: P3 Keywords: DUAL_MONITOR
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot of bugged dialogue
Same with openjdk

Description therefromhere 2012-11-28 22:18:43 UTC
Some dialogue boxes - at least "Confirm Import Settings" and "Can't refactor here" (PHP) are appearing almost off my screen - I think they're centred on the right-hand edge of the right-hand screen.

I suspect they're trying to be in the centre of my desktop and failing.

This is on a 2-monitor Ubuntu 12.04 machine, where the *right hand* screen is the primary one.

I also suspect this might be related to another (fixed) bug I reported for the same setup: http://netbeans.org/bugzilla/show_bug.cgi?id=218322

Confirmed on 

netbeans-7.3beta2-php-linux.sh
and 
netbeans-trunk-nightly-201211270002-php-linux.sh

Java version:

$ java -showversion
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Comment 1 therefromhere 2012-11-28 22:23:12 UTC
Confirmed that changing the primary monitor to be the left-hand one fixes the problem.
Comment 2 Stanislav Aubrecht 2012-11-29 09:30:30 UTC
Please attach a screen shot and reopen, thanks.
Also try running NetBeans with Oracle JDK 1.7
Comment 3 therefromhere 2012-11-29 18:39:41 UTC
Created attachment 128601 [details]
Screenshot of bugged dialogue

I'm not getting quite the same effect as before (possibly because I've toggled which is the primary monitor?)

Now with the right-hand screen as the primary, the dialogue appears close to the right edge of that screen - previously, it was further to the right (so the Yes button was onscreen but the No was off).

I believe this is supposed to be centred on the screen, since that's what happens when the left is the primary.
Comment 4 therefromhere 2012-11-29 18:44:46 UTC
Created attachment 128602 [details]
Same with openjdk

OK, so OpenJDK triggers the bug.

This screenshot is with openjdk (version as listed in ticket), and is the bug I was referring to.

The other screenshot from my previous comment was with Oracle jdk1.7.0_07