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.
Allasso Travesser
Greenhorn
Joined: Feb 06, 2010
Posts: 25
posted
0
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.
Thanks, Lester, that is what I always use. But as I said in the OP, when that is set true, ONLY directories are selectable. Am I missing something here that you are trying to point out to me?
Thanks, I'll look into that and let you know the outcome.
Allasso
Lester Burnham
Rancher
Joined: Oct 14, 2008
Posts: 1337
posted
0
Am I missing something here that you are trying to point out to me?
Arg, sorry, I totally overlooked that that was precisely what you mentioned.
Thanks, I'll look into that and let you know the outcome.
It won't help with your problem, it's just something to be aware of (and potentially use) if the distinction between files and directories is important.
Allasso Travesser
Greenhorn
Joined: Feb 06, 2010
Posts: 25
posted
0
Lester Burnham wrote:It won't help with your problem, it's just something to be aware of (and potentially use) if the distinction between files and directories is important.
Yes, I saw that, and I really appreciate you pointing that out to me. I was unaware of that, and it is something I will use to keep users from navigating into bundles.
Thanks, Allasso
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: using FileDialog for to select both files AND directories