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 238634 - Windows do not stay in position with Dual Monitor using Mac OS X Mavericks
Summary: Windows do not stay in position with Dual Monitor using Mac OS X Mavericks
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.4
Hardware: Macintosh Mac OS X
: P3 normal with 3 votes (vote)
Assignee: Stanislav Aubrecht
URL: http://bugs.sun.com/bugdatabase/view_...
Keywords: DUAL_MONITOR
: 241641 241642 242809 244699 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-20 23:00 UTC by superdev
Modified: 2017-07-19 09:15 UTC (History)
4 users (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 superdev 2013-11-20 23:00:45 UTC
I am using OS X Mavericks with Netbeans 7.4., trying to take advantage of dual monitors in my Mac with this application. When adding some of the tabs to another monitor, it seems to work and looks very neat. But the problem is when I click in the app on the main monitor and then click back on one of the tabs I have on the other monitor, that tab (or new window) will go back to the main screen and not stay where it is. It also happens if I click on 'Run Project'. 

Maybe you guys can add an option to snap into the second monitor and stay there, more support for dual screen for this great app. Thank you.
Comment 1 Stanislav Aubrecht 2013-12-02 14:11:24 UTC
This is a JDK bug reproducible with any Swing app showing a modal dialog.
Comment 2 Stanislav Aubrecht 2014-02-10 13:55:18 UTC
*** Bug 241641 has been marked as a duplicate of this bug. ***
Comment 3 Stanislav Aubrecht 2014-02-10 14:42:44 UTC
*** Bug 241641 has been marked as a duplicate of this bug. ***
Comment 4 Stanislav Aubrecht 2014-02-14 10:04:02 UTC
*** Bug 241642 has been marked as a duplicate of this bug. ***
Comment 5 Stanislav Aubrecht 2014-03-14 09:39:16 UTC
*** Bug 242809 has been marked as a duplicate of this bug. ***
Comment 6 ebakke 2014-03-14 12:47:43 UTC
It seems from the JDK bug description that this may actually be a "feature" of modal dialogs on Mavericks, not an actual JDK bug or Apple bug. In that case, it seems NetBeans would have to find a different way to render floating windows than through Dialog windows--e.g. a regular non-modal JFrame?
Comment 7 jmborer 2014-03-14 15:28:21 UTC
(In reply to ebakke from comment #6)
> It seems from the JDK bug description that this may actually be a "feature"
> of modal dialogs on Mavericks, not an actual JDK bug or Apple bug. In that
> case, it seems NetBeans would have to find a different way to render
> floating windows than through Dialog windows--e.g. a regular non-modal
> JFrame?

I have to agree: I don't understand why NB uses JDialog as base class for floating windows, because I, personally, don't like the fact that they remain over others. An example, I am often running NB on the main screen and an app just launch from NB on another screen. Every time NB gets the focus, my detached window (output) covers the app window what I don't want. I would prefer the detached window to remain in background, but that is a personal opinion. However JFrame would allow to do that.
Comment 8 Stanislav Aubrecht 2014-05-30 07:39:44 UTC
*** Bug 244699 has been marked as a duplicate of this bug. ***
Comment 9 eeverman 2016-04-19 17:12:34 UTC
I am reopening this (if possible).  I understand that the cause of the issue is how the Mac JVM handles model windows, however, the real issue is that torn off windows should not be modal.

Modal windows (dialogs) nominally block the usage of their parent window until the user has finished with them.  That is not the intent when a user tears off a tab into a separate window.  The purpose is to use the torn-off window concurrently with the 'main' IDE window.

Torn off windows should not be modal to allow users to fully take advantage of multiple monitor setups.
Comment 10 eeverman 2016-04-19 17:13:48 UTC
Note also that this remains an issue on NetBeans 8.1 on OS X 10.11.4.
Comment 11 eeverman 2016-08-11 14:26:41 UTC
Any thoughts on this?  It would be really nice to resolve this so that multiple windows are usable.
Comment 12 MullerRegis 2017-07-19 09:15:05 UTC
On yosemite, with NB 8.2, deselecting the option Displays Have Separate Spaces in the Mission Control settings seems to do the trick for me.

https://helpx.adobe.com/photoshop/kb/panels-revert-main-screen-mac.html