Are there any predefined file filters for a JFileChooser?
Location: http://www.jguru.com/faq/view.jsp?EID=1303864 Created: Jun 30, 2006 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Apart from the accept all filter, until Java 6, there were no predefined filters. Java 6 introduces the FileNameExtensionFilter, allowing you to define one or more types of files for the user to select. FileFilter filter = new FileNameExtensionFilter(“JPEG file”, “jpg”, “jpeg”); JFileChooser fileChooser = …; fileChooser.
Location: http://www.jguru.com/faq/view.jsp?EID=1303864 Created: Jun 30, 2006 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Apart from the accept all filter, until Java 6, there were no predefined filters. Java 6 introduces the FileNameExtensionFilter, allowing you to define one or more types of files for the user to select.
Related Questions
- My project file contains filters I have created to display specific information from my project file. Can I still use them with Housatonic Project Viewer for Web Server?
- My project file contains filters I have created to display specific information from my project file. Can I still use them with HPV Web Server?
- Are there any predefined file filters for a JFileChooser?