A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
Select directory dialog
Manuel Corrales
Greenhorn
Joined: Dec 09, 2004
Posts: 2
posted
Mar 09, 2005 16:28:00
0
I know there is an Open or Save dialog.
Is there a way of get a dialog for selecting a directory??
Pat Hays
Ranch Hand
Joined: Aug 20, 2004
Posts: 138
posted
Mar 09, 2005 22:36:00
0
Hi Manuel
Try this code,
------------------
fileChooser.setCurrentDirectory(new File("C:\\tools"));
Download Java GUI Builder, <a href="http://www.mars3000.com" target="_blank" rel="nofollow">http://www.mars3000.com</a>
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: Select directory dialog
Similar Threads
Get the path to the install directory
downloading the file
Building in Eclipse
A call for an OpenDir dialog...?
Eclipse include projects
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter