java.lang.Object
javax.swing.filechooser.FileFilter
org.jpo.gui.ImageFilter
This class overrides the abstract javax.swing.filechoose.FileFilter class
(not the java.io.FileFilter) to provide a true or false indicator to
using JFileChoosers whether the file is a directory or image
ending in .jpg, .jpeg, .tif, .tiff or .gif.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accepts directories and files ending in .jpg, .jpeg, .tif, .tiff or .gifreturns the description "tiff, gif, jpeg Images"
-
Constructor Details
-
ImageFilter
public ImageFilter()
-
-
Method Details
-
accept
accepts directories and files ending in .jpg, .jpeg, .tif, .tiff or .gif- Specified by:
accept
in classFileFilter
- Parameters:
file
- the file to test- Returns:
- true if good, false if not
-
getDescription
returns the description "tiff, gif, jpeg Images"- Specified by:
getDescription
in classFileFilter
- Returns:
- A description for the filter
-