This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes A call for an OpenDir dialog...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "A call for an OpenDir dialog...?" Watch "A call for an OpenDir dialog...?" New topic
Author

A call for an OpenDir dialog...?

Brian Coates
Ranch Hand

Joined: Jul 03, 2001
Posts: 42
Is there a call to open an "Open Directory" dialog box, similar to the OpenFile dialog box? Instead that you're selecting a directory instead of a file?
Thanks..
brian
Steve Deadsea
Ranch Hand

Joined: Dec 03, 2001
Posts: 125
The JFileChooser has options for whether it will accept files, directories, or either. Here is an example that accepts multiple files or directories:
Brian Coates
Ranch Hand

Joined: Jul 03, 2001
Posts: 42
thanks.. that worked.
 
Don't get me started about those stupid light bulbs.
 
subject: A call for an OpenDir dialog...?