public final class DirectoryChooser extends Object
Type | Property and Description |
---|---|
ObjectProperty<File> |
initialDirectory
The initial directory for the displayed dialog.
|
StringProperty |
title
The title of the displayed dialog.
|
Constructor and Description |
---|
DirectoryChooser() |
Modifier and Type | Method and Description |
---|---|
File |
getInitialDirectory()
Gets the value of the property initialDirectory.
|
String |
getTitle()
Gets the value of the property title.
|
ObjectProperty<File> |
initialDirectoryProperty()
The initial directory for the displayed dialog.
|
void |
setInitialDirectory(File value)
Sets the value of the property initialDirectory.
|
void |
setTitle(String value)
Sets the value of the property title.
|
File |
showDialog(Window ownerWindow)
Shows a new directory selection dialog.
|
StringProperty |
titleProperty()
The title of the displayed dialog.
|
public final StringProperty titleProperty
getTitle()
,
setTitle(String)
public final ObjectProperty<File> initialDirectoryProperty
getInitialDirectory()
,
setInitialDirectory(File)
public final void setTitle(String value)
public final String getTitle()
public final StringProperty titleProperty()
getTitle()
,
setTitle(String)
public final void setInitialDirectory(File value)
public final File getInitialDirectory()
public final ObjectProperty<File> initialDirectoryProperty()
getInitialDirectory()
,
setInitialDirectory(File)
public File showDialog(Window ownerWindow)
null
if no selection has been
made. If the owner window for the directory selection dialog is set,
input to all windows in the dialog's owner chain is blocked while the
dialog is being shown.ownerWindow
- the owner window of the displayed dialognull
if no directory has been
selectedSubmit 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 © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.