in order to be able to select directories, but it only allows directory selection. Not setting it only allows file selection. I wish to be able to select either a file OR a directory, which I haven't found a way to do.
Allasso Travesser wrote:it is possible, but JFileChooser does not display files in "column view mode" that Mac users are accustomed to, thus the reason for using FileDialog.
I don't have a mac to test this on, but I wonder if this Look & Feel dependent? If so, then JFileChooser could work out just fine.
Joined: Feb 06, 2010
yes, it has the Mac look and feel (sorta) but it displays in what Mac would call "list view mode". I use a Mac and am pretty familiar with this stuff. I know LOTS of Mac users, and "column view mode" is what most of them use. (actually I can't ever remember seeing anyone NOT using column view). I've written several programs that use a file chooser, and I always use FileDialog (if the system detects a Mac) for this reason. Only thing is now I have an application that needs to have the option of selecting either a folder or file.