Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Are there any predefined file filters for a JFileChooser?

0
Posted

Are there any predefined file filters for a JFileChooser?

0

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.

0
0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123