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

[macosx] Add directories selection support in the java.awt.FileDialog

XMLWordPrintable

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

      * Oracle's own update to java.awt.FileDialog is unfortunately still too limited for our needs. Although it now supports multiple file selection, one can't select directories as well and it doesn't allow drag and drop either.

      * Calling getGraphicsConfiguration().getDevice().setFullScreenWindow(this); where "this" is a JFrame instance, as we do in our full screen slide show mode seems to cause a core dump:

      2012-09-26 12:23:18.721 java[10122:8b13] Cocoa AWT: Not running on AppKit thread 0 when expected. (
      0 liblwawt.dylib 0x000000019bf7a50f Java_sun_lwawt_macosx_CPlatformWindow_nativeGetNSWindowDisplayID_1AppKitThread + 59
      1 ??? 0x00000001108aff90 0x0 + 4572512144
      2 ??? 0x00000001108a42d4 0x0 + 4572463828
      3 ??? 0x00000001108a49e1 0x0 + 4572465633
      )
      2012-09-26 12:23:18.722 java[10122:8b13] Please file a bug report at http://java.net/jira/browse/MACOSX_PORT with this message and a reproducible test case.


      Attach the source code for a full screen slide show. It's a rather short piece of code and can be stripped down to a minimal reproduceable case.

      Work around this case by checking for Java 7 for Mac and simply ignoring calling getGraphicsConfiguration().getDevice().setFullScreenWindow(this)



            alexsch Alexandr Scherbatiy
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: