public abstract class FileFilter extends Object
FileFilteris an abstract class used by
JFileChooserfor filtering the set of files shown to the user. See
FileNameExtensionFilterfor an implementation that filters using the file name extension.
can be set on a
keep unwanted files from appearing in the directory listing.
For an example implementation of a simple file filter, see
For more information and examples see
How to Use File Choosers,
a section in The Java Tutorial.
|Constructor and Description|
|Modifier and Type||Method and Description|
Whether the given file is accepted by this filter.
The description of this filter.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.