The directories selection in FileDialog for Mac OS X by the "apple.awt.fileDialogForDirectories" system property has been added to the JDK 7u12 and JDK 8 (see JDK-7161437).
See also Integration with the Native Application Environment: http://developer.apple.com/library/mac/#documentation/Java/Reference/Java_PropertiesRef/Articles/JavaSystemProperties.html
------------------------------------------------
apple.awt.fileDialogForDirectories
By default, the AWT File Dialog lets you choose a file. Under certain circumstances, however, it may be proper for you to choose a directory instead. If that is the case, set this property to allow for directory selection in a file dialog.
The default value is false.
------------------------------------------------
|