public static class FileChooser.Filter extends FileFilter
Constructor and Description |
---|
FileChooser.Filter(FilenameFilter filter,
String description)
Creates a new filter, using the given filename filter to determine which
files to accept.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File f) |
String |
getDescription()
Returns the description of the filter
|
FilenameFilter |
getFilter()
Returns the filename filter used to determine which files to accept.
|
public FileChooser.Filter(FilenameFilter filter, String description)
filter
- the filename filter used to determine which files to acceptdescription
- the description of the filterpublic boolean accept(File f)
accept
in class FileFilter
public FilenameFilter getFilter()
public String getDescription()
getDescription
in class FileFilter