util
Class PngFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by util.PngFileFilter

public class PngFileFilter
extends javax.swing.filechooser.FileFilter

File filter for *.png files.


Constructor Summary
PngFileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Accept all directories, *.png files.
 java.lang.String getDescription()
          The description of this filter
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

PngFileFilter

public PngFileFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Accept all directories, *.png files.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f -
Returns:
boolean

getDescription

public java.lang.String getDescription()
The description of this filter

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
String

getExtension

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

Parameters:
f -
Returns:
String - the extension of the file f