Some native systems (eg. Windows, GTK) have a standard dialog that supports directory selection. However, the java.awt.FileDialog supports selecting files only.
There needs to be either a new class (like DirectoryDialog), or an additional mode introduced to the FileDialog.
CAP member had requested the same feature through recent JDK 7 CAP program survey:
FileDialog still lacks two important features for a file and image centric desktop application:
* Missing the ability to set the FileDialog to select directories only
* Missing the ability to set the FileDialog to "Thumbnail view mode".
This is very important as our application deals with images.
Please address these two issues and we will be happy with JDK/JRE7.
If these features are not supported by a certain underlaying platform, so be it.
In such cases we can revert to a Swing JFileChooser instead.
By having an "isXYZsupported() method the developer can make a smart choice.