| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.io | Provides for system input and output through data streams,
serialization and the file system. | 
| Modifier and Type | Method and Description | 
|---|---|
| FilenameFilter | FileDialog. getFilenameFilter()Determines this file dialog's filename filter. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | FileDialog. setFilenameFilter(FilenameFilter filter)Sets the filename filter for this file dialog window to the
 specified filter. | 
| Modifier and Type | Method and Description | 
|---|---|
| String[] | File. list(FilenameFilter filter)Returns an array of strings naming the files and directories in the
 directory denoted by this abstract pathname that satisfy the specified
 filter. | 
| File[] | File. listFiles(FilenameFilter filter)Returns an array of abstract pathnames denoting the files and
 directories in the directory denoted by this abstract pathname that
 satisfy the specified 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.