Now I want a code that will be able to select only directories and not files .. Like the functionality of choosing path to store file ... i.e to give destination to store files ... and not to select files ..

Could anyone please give sample code for this ??

Rob Camick

Ranch Hand

Posts: 2788

12

posted 7 years ago

Read the JFileChooser API and follow the link to the section in the Swing tutorial on "How to Use File Choosers", where you will find an example.