Quote:
Originally Posted by Bert
That's a strange problem ... Are you sure that directory contains any directories?
The 'open file' dialog does absolutely no filtering (except that it only accepts directories), I was planning to filter on irex-pdf dirs directly with the file-chooser, but I couldn't find a way to do it. Eventually I just decided to accept all directories, and check if they are valid later on.
|
You can do it extending the java.io.FileFilter class, in the accept method you can do all the tests you need to detect if that folder is a Irex folder

then assign that class as the filter class for the dialog.