How to select the Source/Destination Folder?

Hi there!!Well we have got the facility for choosing a file using JFileChooser,how do I select a folder and show it in my interface?I would be mighty thankful if somebody can post some code,,,Thanks in advance,,
[232 byte] By [Kami_Pakistana] at [2007-11-27 5:45:39]
# 1
To select a folder use JFileChooserObject.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);before you show the fileChooser
Swing_guya at 2007-7-12 15:27:35 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks a lot for your help Swing_guy..........
Kami_Pakistana at 2007-7-12 15:27:35 > top of Java-index,Desktop,Core GUI APIs...
# 3
you're welcome Kami_Pakistan
Swing_guya at 2007-7-12 15:27:35 > top of Java-index,Desktop,Core GUI APIs...