United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7160293 [macosx] FileDialog appears on secondary display
7160293 : [macosx] FileDialog appears on secondary display

Details
Type:
Bug
Submit Date:
2012-04-10
Status:
Closed
Updated Date:
2012-10-01
Project Name:
JDK
Resolved Date:
2012-06-25
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7,7u6
Fixed Versions:
8

Related Reports
Backport:
Duplicate:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

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
SUGGESTED FIX

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

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



Hardware and Software, Engineered to Work Together