Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080729

[macosx] java 7 and 8 JDialogs on multiscreen jump to parent frame on focus

    Details

    • Subcomponent:
    • Resolved In Build:
      b124

      Backports

        Description

        Further details will be added later.

          Issue Links

            Activity

            Hide
            sergei Sergei Sapozhnikov added a comment -
            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
            Show
            sergei Sergei Sapozhnikov added a comment - 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
            Hide
            dmarkov Dmitry Markov added a comment -
            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.
            Show
            dmarkov Dmitry Markov added a comment - 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.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/936d79078a45
            User: dmarkov
            Date: 2016-05-13 11:27:12 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/936d79078a45 User: dmarkov Date: 2016-05-13 11:27:12 +0000
            Hide
            scfitch Stephen Fitch added a comment -
            Will not fix for 7.
            Show
            scfitch Stephen Fitch added a comment - Will not fix for 7.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/936d79078a45
            User: lana
            Date: 2016-06-22 19:53:10 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/936d79078a45 User: lana Date: 2016-06-22 19:53:10 +0000

              People

              • Assignee:
                dmarkov Dmitry Markov
                Reporter:
                shadowbug Shadow Bug
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: