javax.swing.filechooser
public abstract class FileFilter extends Object
Constructor Summary | |
---|---|
FileFilter()
Default constructor. |
Method Summary | |
---|---|
abstract boolean | accept(File file)
Returns true if the specified file matches the filter, and
false otherwise.
|
abstract String | getDescription()
Returns a description of the files that will be selected by the filter
(for example, "Java source files"). |
true
if the specified file matches the filter, and
false
otherwise.
Parameters: file the file.
Returns: A boolean.
Returns: A description of the filter.