Class ImageFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byImageFileFilter

public class ImageFileFilter
extends javax.swing.filechooser.FileFilter

File filter to filter out unwanted files.

Author:
Lulin Song

Constructor Summary
ImageFileFilter(java.lang.String ext)
           
ImageFileFilter(java.lang.String[] exts, java.lang.String descr)
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFileFilter

public ImageFileFilter(java.lang.String ext)

ImageFileFilter

public ImageFileFilter(java.lang.String[] exts,
                       java.lang.String descr)
Method Detail

accept

public boolean accept(java.io.File f)

getDescription

public java.lang.String getDescription()