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

[macosx] graphicsDevice.setFullScreenWindow(frame) crashes JVM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • client-libs


      This issue is separated from the JI-27

      Run the code below on Mac OS X:
      ----------------------------------
      import com.apple.eawt.FullScreenUtilities;
      import javax.swing.*;
      import java.awt.GraphicsDevice;

      public class FileChooserFullScreen {

          public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {

                  @Override
                  public void run() {
                      JFrame frame = new JFrame();
                      frame.setSize(300, 300);
                      frame.setVisible(true);
                      FullScreenUtilities.setWindowCanFullScreen(frame, true);

                      GraphicsDevice device = frame.getGraphicsConfiguration().getDevice();

                      device.setFullScreenWindow(frame);
                  }
              });

          }
      }

      ----------------------------------

      The JVM crashes:
      012-10-01 17:33:46.470 java[2045:860b] Cocoa AWT: Not running on AppKit thread 0 when expected. (
      0 libawt_lwawt.dylib 0x000000011c4376c9 Java_sun_lwawt_macosx_CPlatformWindow_nativeGetNSWindowDisplayID_1AppKitThread + 59
      1 ??? 0x000000010f46560d 0x0 + 4551235085

            alexsch Alexandr Scherbatiy
            alexsch Alexandr Scherbatiy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: