View Single Post
Old 02-02-2007, 03:04 PM   #5
Kirys
Zealot
Kirys has learned how to buy an e-book online
 
Posts: 122
Karma: 86
Join Date: Dec 2006
Location: Italy
Device: Boox M90
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.
Kirys is offline   Reply With Quote