my dog learned polymorphism*
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
 
Don't get me started about those stupid light bulbs.
 
subject: Setting a path in JFileChooser
 
Similar Threads
how to write coding for browse button in java swing?
File browser crash course
Simple file browser !!!!!!
How to copy an html file to another folder
Is there any Browse button control in Swing ??