public abstract class FileFilter extends java.lang.Object
JFileChooser component.JFileChooser.addChoosableFileFilter(FileFilter)| Constructor and Description |
|---|
FileFilter()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
accept(java.io.File file)
Returns
true if the specified file matches the filter, and
false otherwise. |
abstract java.lang.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(java.io.File file)
true if the specified file matches the filter, and
false otherwise.file - the file.public abstract java.lang.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).