edu.ou.kmi.buddyspace.utils
Class ImageFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--edu.ou.kmi.buddyspace.utils.ImageFilter

public class ImageFilter
extends javax.swing.filechooser.FileFilter

ImageFilter provides filtering of image files for JFileChooser.


Constructor Summary
ImageFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getDescription()
           
static java.lang.String getExtension(java.io.File f)
          Get the extension of a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFilter

public ImageFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter

getExtension

public static java.lang.String getExtension(java.io.File f)
Get the extension of a file.