I am new to this forum and also new to JAVA.
I am working on a project using which a folder can be compressed and decompressed.
But the very first problem i get is i am not able to browse complete folder.
Please help me out.
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:
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.