Rishabh Rathi wrote:Thank you all 4 for your reply.....
Sorry to nitpick, but
UseRealWords: "for", not "4".
JFileChooser() is for choosing a file not a folder
Not if you set the file selection mode to JFileChooser.DIRECTORIES_ONLY or JFileChooser.FILES_AND_DIRECTORIES; the default is JFileChooser.FILES_ONLY.
Rishabh Rathi wrote:
@Rob:
Will you please give an example of code so that i can get it more easily?
If you click on the JFileChooser words around this
thread you will open up its Javadoc page. At the top there's a link with label "How to Use File Choosers". Click on it and read the page you're redirected to.