I don't have much time to do some researching, but I found this while googling:
java - How do I restrict JFileChooser to a directory? - Stack Overflow

There might also be something useful in one...