how to set a folder

hey guys. i just wanted to know how you can display a pane through which u can select a folder to save a particular file....something like the JFileChooser but i just want to set a save location not specify a file...so what should i do...?
[246 byte] By [dare-devila] at [2007-11-27 1:42:26]
# 1
Use JTextField http://java.sun.com/docs/books/tutorial/uiswing/components/text.htmlAnd please post Swing questions in the Swing forum.
ChuckBinga at 2007-7-12 0:59:04 > top of Java-index,Java Essentials,New To Java...
# 2
Just set the file selection mode to JFileChooser.DIRECTORIES_ONLY using setFileSelectionMode method in the JFileChooser
LRMKa at 2007-7-12 0:59:04 > top of Java-index,Java Essentials,New To Java...
# 3
thanks lmrk...
dare-devila at 2007-7-12 0:59:04 > top of Java-index,Java Essentials,New To Java...