An implementation of {@code FileFilter} that filters using aspecified set of extensions. The extension for a file is the portion of the file name after the last ".". Files whose name does not contain a "." have no file name extension. File name extension comparisons are case insensitive.
The following example creates a {@code FileNameExtensionFilter} that will show {@code jpg} files:
FileFilter filter = new FileNameExtensionFilter("JPEG file", "jpg", "jpeg"); JFileChooser fileChooser = ...; fileChooser.addChoosableFileFilter(filter);
@see FileFilter
@see javax.swing.JFileChooser#setFileFilter
@see javax.swing.JFileChooser#addChoosableFileFilter
@see javax.swing.JFileChooser#getFileFilter
@since 1.6