javax.swing.filechooser (Java SE 26 & JDK 26)
Description: declaration: module: java.desktop, package: javax.swing.filechooser
Keywords: javax.swing.filechooser package

# Package javax.swing.filechooser

package javax.swing.filechooser
Contains classes and interfaces used by the `JFileChooser` component.

Note: Most of the Swing API is not thread safe. For details, see Concurrency in Swing, a section in The Java Tutorial.

## Related Documentation

This document forms the complete API specification. For overviews, tutorials, examples, guides, and tool documentation, please see:

- How to Use File Choosers, a section in The Java Tutorial
- Internationalization Overview
- Input Method Framework Overview

Since:
  1.2

- Related Packages
  Package
  Description
  javax.swing
  Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
- Classes
  Class
  Description
  FileFilter
  `FileFilter` is an abstract class used by `JFileChooser` for filtering the set of files shown to the user.
  FileNameExtensionFilter
  An implementation of `FileFilter` that filters using a specified set of extensions.
  FileSystemView
  FileSystemView is JFileChooser's gateway to the file system.
  FileView
  `FileView` defines an abstract class that can be implemented to provide the filechooser with UI information for a `File`.