public abstract class FileFilter extends Object
JFileChooser component.| Constructor and Description |
|---|
FileFilter()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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").
|
public FileFilter()
public abstract boolean accept(File file)
true if the specified file matches the filter, and
false otherwise.file - the file.public abstract String getDescription()
JFileChooser component, often in a combo box that
is used to select the appropriate filter (in cases where more than one
filter is available).