JDK-7160293 : [macosx] FileDialog appears on secondary display
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,7u6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2012-04-10
  • Updated: 2013-08-14
  • Resolved: 2012-06-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u6Fixed 8 b43Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
The problem is reproducible when I'm using an external monitor as primary display (and MacBook Pro as secondary display). When I run SwingSet2, the main window appears on the primary screen. Then I open a FileDialog (click on the FileChooserDemo tab and click on the "Show Plain JFileChooser" button) and expect to see a FileDialog on the primary screen but it appears on the secondary screen.

Comments
EVALUATION The cause of the issue is that nativeGetScreenNSWindowIsOn_AppKitThread (AWTWindow.m) returns hard-coded value.
22-05-2012

SUGGESTED FIX http://hg.openjdk.java.net/jdk8/awt/jdk/rev/5ff4693406ad
22-05-2012