This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes DirectoryChooser - How? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "DirectoryChooser - How?" Watch "DirectoryChooser - How?" New topic

DirectoryChooser - How?

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
I want to open a "DIRECTORY CHOOSER" instead of JFileChooser so that user may choose the destination directory for output. how can i?

The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
Davy Kelly
Ranch Hand

Joined: Jan 12, 2004
Posts: 384
I found this for you.

so JFileChooser could be a good tool to use.


How simple does it have to be???
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
perhaps all you need to do with your current JFileChooser is this

It is sorta covered in the JavaRanch Style Guide.
subject: DirectoryChooser - How?
Similar Threads
Adding virtual directory
View direct through a web service question
How can a program point to a a different directory
Copy File
reading files in specified directory