| 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. | 
| javax.swing.filechooser | Contains classes and interfaces used by the  JFileChoosercomponent. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| FileSystemView | JFileChooser. getFileSystemView()Returns the file system view. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | JFileChooser. setFileSystemView(FileSystemView fsv)Sets the file system view that the  JFileChooseruses for
 accessing and creating file system resources, such as finding
 the floppy drive and getting a list of root drives. | |
| protected void | JFileChooser. setup(FileSystemView view)Performs common constructor initialization and setup. | 
| Constructor | Description | 
|---|---|
| JFileChooser(File currentDirectory,
            FileSystemView fsv)Constructs a  JFileChooserusing the given current directory
 andFileSystemView. | |
| JFileChooser(FileSystemView fsv)Constructs a  JFileChooserusing the givenFileSystemView. | |
| JFileChooser(String currentDirectoryPath,
            FileSystemView fsv)Constructs a  JFileChooserusing the given current directory
 path andFileSystemView. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static FileSystemView | FileSystemView. getFileSystemView() | 
 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.