JDK-8080729 : [macosx] java 7 and 8 JDialogs on multiscreen jump to parent frame on focus
Type:Bug
Component:client-libs
Sub-Component:java.awt
Affected Version:7u80,8,9
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2015-05-20
Updated:2017-05-24
Resolved:2016-05-13
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.
Only on OS X the JDialog jumps to the owner's monitor
Need 2 monitors to reproduce.
Compile and run the following application that shows a frame with a dialog.
TestWindowJumpingOnMac.java
import javax.swing.*;
public final class TestWindowJumpingOnMac {
public static void main(String[] args)throws Exception{
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
JFrame frame =new JFrame("frame");
frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
frame.setBounds(200, 200, 400, 400);
frame.setVisible(true);
JDialog dialog=new JDialog(frame, "dialog", false);
dialog.setBounds(400, 400, 400, 400);
dialog.setVisible(true);
}
});
}
}
Drag the dialog to another monitor.
Click on the frame to grab focus.
Click on the dialog to grab focus.
The dialog returns to the monitor, where the frame is visible.
19-04-2016
Need status update on this issue, please.
Last update was dated ALITVIN2 anton.litvinov 07/22/15 08:00 am *** (CHG: Asg->DMARKOV)
Thank you