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

[macosx] Window does not exit native FS mode when disposed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 9
    • client-libs

      Reproducible on Yosemite. When the window is in native full screen mode, disposing it leaves the user with a black screen. To reproduce use the following app:

          SwingUtilities.invokeLater(() -> {
                  JFrame f = new JFrame(" TEST ");
                  new JFrame().setVisible(true);
                  f.setLayout(new FlowLayout());
                  JButton button = new JButton(" Button ");
                  f.add(button);
                  f.setBounds(100, 100, 100, 100);
                  f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
                  f.setVisible(true);
                  FullScreenUtilities.setWindowCanFullScreen(f, true);
              });

            pchelko Petr Pchelko (Inactive)
            pchelko Petr Pchelko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: