org.jfree.ui
public class ExtensionFileFilter extends FileFilter
Constructor Summary | |
---|---|
ExtensionFileFilter(String description, String extension)
Standard constructor.
|
Method Summary | |
---|---|
boolean | accept(File file)
Returns true if the file ends with the specified extension.
|
String | getDescription()
Returns the description of the filter.
|
Parameters: description a description of the file type; extension the file extension;
Parameters: file the file to test.
Returns: A boolean that indicates whether or not the file is accepted by the filter.
Returns: a description of the filter.