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.
I have douple display configured so that windows desktop uses both displays. (I use netbeans so that its main window is widened over these two physical displays.) When I open e.g. tools -> options, the options window opens incorrectly into the right display. In NB6.1 it opened correctly into left display. In my mind window should open into the left display OR into the display where it last time was closed.
afaik, it openes on primary display. Could you check it?
Hi, I also noticed that when I point a java function and ctrl + space bar to open java doc, it opens in the right display although cursor ( and java function name ) is in the left display. Jouni
please provide jdk version info. also pls try reproducing this behavior with swingset demo - there's a tab which opens some standard file browse dialog and message panes, thanks.
I checked that window opens to NON-primary display. I did not change any display settings after updating NB6.1 -> NB6.5. JDK is 1.6.0_10
Where can I find this "swingset demo"?
look for SwingSet2.jar in <jdk_home>/demo/jfc/SwingSet2
I run jdk SwingSet2 demo (Demo opened into the left display) and tried following demos: JFileChooserDemo, OptionPaneDemo: They opened all windows correctly into the primary display = left display. Then I tried Multiscreen -> "Create ... on all screens" command and new SwingSet2 windows opened into both displays Then I tried Multiscreen -> "Create ... on screen 0" command and new SwingSet2 window opened into left display (= primary display) Then I tried Multiscreen -> "Create ... on screen 1" command and new SwingSet2 window opened into right display Then I tried following demos: JFileChooserDemo, OptionPaneDeom with the SwingSet2 window opened by hitting "Create ... on screen 0" : All windows opened into the primary display = left display. Then I tried following demos: JFileChooserDemo, OptionPaneDeom with the SwingSet2 window opened by hitting "Create ... on screen 1" : All windows opened into the non-primary display = right display. I did not compile SwingSet2.jar but run it as it is delivered.
i couldn't reproduce the problem. all dialog windows open correctly in the primary display. can you pls provide some screen shots? thanks
Here are 2 gif files: First with Java doc in wrong display when I pointed ExceptionUtil.getLocationInCode -function and hit ctrl+space. Second with Tools/Options window in wrong display. Note that there is also Control Panel / Display properties which shows that left screen is really the primary screen.
Created attachment 76898 [details] JavaDoc in wrong display
Created attachment 76899 [details] Tools / Options in wrong display
Created attachment 76915 [details] swingset demo
i have reproduced this issue with swingset demo as well, see attached screenshot. when the application is too wide then dialogs open on secondary monitor, otherwise dialog windows open correctly on the primary screen. the problem is in Window.setLocationRelativeTo(Component) which tries to center the dialog window above the given component and it's failing in some cases on dual monitor setup. you may consider filing a bug against JDK: http://bugreport.sun.com/bugreport/