Access to native directory chooser

Robert Krüger krueger at lesspain.de
Mon Oct 22 11:46:39 PDT 2012


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


More information about the macosx-port-dev mailing list