views:

109

answers:

1

I need to use AWT file choosers for my java app because we want to give users the native mac file chooser. Yes I know abut quaqua and we use it, but it does not use the native file chooser and mac users do not like it. The file chooser I am currently worried about sets the global propery:

System.setProperty("apple.awt.fileDialogForDirectories", "true");

This is done because I want the user to only be able to select a directory but for some reason I cannot navigate select or navigate through aliases. I have another file chooser that uses the same property listed above but in this one I set it to a FileDialog.SaveDialog and with this file chooser I can use aliases. Does anyone know if it is possible to use aliases an open style file chooser that can only select directories and can still use aliases?

A: 

On Mac OS X 10.5.8, Java 1.5.0_22, setting fileDialogForDirectories and using an JFileChooser set for DIRECTORIES_ONLY, I can navigate through an alias as long as the alias points to a directory.

trashgod
Right but I'm using the FileDialog (AWT) not the JFileChooser (Swing), there is no way to get the native native file choosers of the OS except by using the AWT file chooser.
Mike2012