Click to See Complete Forum and Search --> : Directory filechooser


Gremlin
October 2nd, 2000, 03:08 PM
Hi,

I'm trying to write a filechooser that will let the user select a directory. I'm using DIRECTORIES_ONLY but the problem is that if a directory is highlighted and then selected the JFileChooser opens that directory instead of closing and passing the path to my string variable.

Does anyone know what I'm doing wrong?

Thanks in advance

daileyps
October 3rd, 2000, 09:29 AM
Look here:
http://forum.java.sun.com/read/16788242/q_YWOJjmikfUAAAvm#LR
If not what you need...search.java.sun.com is good engine, just enter chooser, maybe you'll find more hints there.

I am looking for info on how to enable the list/detail buttons in the chooser if you can help. Thanks.

Gremlin
October 3rd, 2000, 09:52 AM
Thanks for the help, sorry I can't help you with your problem.