public final class FileChooser
extends java.lang.Object
| Type | Property and Description | 
|---|---|
| ObjectProperty<java.io.File> | initialDirectoryThe initial directory for the displayed file dialog. | 
| StringProperty | titleThe title of the displayed file dialog. | 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | FileChooser.ExtensionFilterDefines an extension filter, used for filtering which files can be chosen
 in a FileDialog based on the file name extensions. | 
| Constructor and Description | 
|---|
| FileChooser() | 
| Modifier and Type | Method and Description | 
|---|---|
| ObservableList<FileChooser.ExtensionFilter> | getExtensionFilters()Gets the extension filters used in the displayed file dialog. | 
| java.io.File | getInitialDirectory()Gets the value of the property initialDirectory. | 
| java.lang.String | getTitle()Gets the value of the property title. | 
| ObjectProperty<java.io.File> | initialDirectoryProperty()The initial directory for the displayed file dialog. | 
| void | setInitialDirectory(java.io.File value)Sets the value of the property initialDirectory. | 
| void | setTitle(java.lang.String value)Sets the value of the property title. | 
| java.io.File | showOpenDialog(Window ownerWindow)Shows a new file open dialog. | 
| java.util.List<java.io.File> | showOpenMultipleDialog(Window ownerWindow)Shows a new file open dialog in which multiple files can be selected. | 
| java.io.File | showSaveDialog(Window ownerWindow)Shows a new file save dialog. | 
| StringProperty | titleProperty()The title of the displayed file dialog. | 
getTitle(), 
setTitle(String)public final void setTitle(java.lang.String value)
public final java.lang.String getTitle()
public final StringProperty titleProperty()
getTitle(), 
setTitle(String)public final void setInitialDirectory(java.io.File value)
public final java.io.File getInitialDirectory()
public final ObjectProperty<java.io.File> initialDirectoryProperty()
public ObservableList<FileChooser.ExtensionFilter> getExtensionFilters()
public java.io.File showOpenDialog(Window ownerWindow)
null if no selection has been
 made. If the owner window for the file dialog is set, input to all
 windows in the dialog's owner chain is blocked while the file dialog
 is being shown.ownerWindow - the owner window of the displayed file dialognull if no file has been selectedpublic java.util.List<java.io.File> showOpenMultipleDialog(Window ownerWindow)
null
 if no selection has been made. If the owner window for the file dialog is
 set, input to all windows in the dialog's owner chain is blocked while
 the file dialog is being shown.
 
 The returned list is unmodifiable and will throw
 UnsupportedOperationException on each modification attempt.
ownerWindow - the owner window of the displayed file dialognull if no file has been selectedpublic java.io.File showSaveDialog(Window ownerWindow)
null if no selection has been made.
 If the owner window for the file dialog is set, input to all windows in
 the dialog's owner chain is blocked while the file dialog is being shown.ownerWindow - the owner window of the displayed file dialognull if no file has been selectedCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.