Access to native directory chooser

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Mon Oct 22 12:13:36 PDT 2012


Hi, Robert.
This functionality was added to jdk and will be available in jdk 7u12 and 8

7161437 : [macosx] awt.FileDialog doesn't respond appropriately for mac 
when selecting folders
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7161437

22.10.2012 22:46, Robert Krüger wrote:
> Hi,
>
> we are currently using the following workaround to get a native
> directory chooser in our app:
>
>          try {
>              System.setProperty("apple.awt.fileDialogForDirectories", "true");
>              fileDialog.setVisible(true);
>          } finally {
>              System.setProperty("apple.awt.fileDialogForDirectories", "false");
>          }
>
> Is there anything other than JNI possible with JDK7?
>
> Thanks in advance,
>
> Robert


-- 
Best regards, Sergey.



More information about the macosx-port-dev mailing list