Java Notes
File Filters
- To display only specific files in a file chooser dialog. See javax.swing.filechooser.FileFilter class.
- To restrict the list returned from the File class listfiles method. See java.io.FileFilter interface.
Potential Name Conflict
If you import bothjavax.swing.filechooser.* and java.io.*,
you will have a name conflict because both file filters use the same name.
Use the fully qualified name in your code to eliminate these problems.















