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 Setting a path in JFileChooser 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 "Setting a path in JFileChooser" Watch "Setting a path in JFileChooser" New topic
Author

Setting a path in JFileChooser

Avishek Singh
Greenhorn

Joined: Jul 12, 2006
Posts: 3
How do i set a path through JFileChooser, so that next time i open JFileChooser i have that path as my default path?
Martin Simons
Ranch Hand

Joined: Mar 02, 2006
Posts: 196
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFileChooser.html#setCurrentDirectory
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Setting a path in JFileChooser
 
Similar Threads
File browser crash course
Simple file browser !!!!!!
How to copy an html file to another folder
Is there any Browse button control in Swing ??
how to write coding for browse button in java swing?