Universal FileFilter
This class is an extension to javax.swing.filechooser.Filefilter that you can use to easily build up simple file filters to use with JFileChooser. Example: ... String[] javaext = { "java" }; String[] htmlext = { "html", "htm" }; String[] textext = { "txt", "rtf", "doc" }; JFileChooser fc = new JFileChooser(); fc.addChooseableFileFilter(new UniversalFileFilter("Java Sourcecode", javaext)); fc.addChooseableFileFilter(new UniversalFileFilter("HTML Files", htmlext)); fc.addChooseableFileFilter(new UniversalFileFilter("Text Files", textext)); ... This will generate a JFileChooser with three filters, and generate file descriptions: Java Sourcecode (*.java) HTML Files (*.html, *.htm) Text Files (*.txt, *.rtf, *.doc)
AI Samenvatting: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Upload Upload