org.jfree.ui
Class ExtensionFileFilter
FileFilter
org.jfree.ui.ExtensionFileFilter
A filter for JFileChooser that filters files by extension.
boolean | accept(File file) - Returns true if the file ends with the specified extension.
|
String | getDescription() - Returns the description of the filter.
|
ExtensionFileFilter
public ExtensionFileFilter(String description,
String extension)
Standard constructor.
description
- a description of the file type;extension
- the file extension;
accept
public boolean accept(File file)
Returns true if the file ends with the specified extension.
- A boolean that indicates whether or not the file is accepted by the filter.
getDescription
public String getDescription()
Returns the description of the filter.
- a description of the filter.