File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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