Class SimpleFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
noaa.coastwatch.gui.SimpleFileFilter

public class SimpleFileFilter extends FileFilter

A convenience implementation of FileFilter that filters out all files except for those type extensions that it knows about.

Extensions are of the type ".foo", which is typically found on Windows and Unix boxes, but not on Mac. Case is ignored.

Example: Create a new filter that filters out all files but gif and jpg image files:

     JFileChooser chooser = new JFileChooser();
     SimpleFileFilter filter = new SimpleFileFilter(
                   new String{"gif", "jpg"}, "JPEG & GIF Images")
     chooser.addChoosableFileFilter(filter);
     chooser.showOpenDialog(this);
 
Version:
1.13 06/13/02
Author:
Jeff Dinkins