Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: FxObj
Wraps JavaFX DirectoryChooser, a dialog that lets the user browse the file system and select a directory. An optional title and initial directory can be set before the dialog is shown. Calling show() presents the native directory picker and returns the selected directory path, or null if the user cancels.
DirectoryChooser ()
Creates a new DirectoryChooser.
setTitle (string Title)
Sets the dialog title.
Title is a string with the title.this object for chainingsetInitDir (string DirPath)
Sets the initial directory.
DirPath is a string with the directory path.this object for chainingshow (object MainStage)
Shows the directory chooser dialog.
MainStage is the owner fxApp stage.The selected File object or null.getTitle ()
Returns the dialog title.
A string with the title or null.titleProperty ()
Returns the StringProperty AJO for the title.
An AJO around the title StringProperty.getInitialDirectory ()
Returns the initial directory as a java.io.File AJO.
An AJO around the initial java.io.File or null.setInitialDirectory (object DirFile)
Sets the initial directory from a java.io.File AJO.
DirFile is an AJO around a java.io.File.this object for chaininginitialDirectoryProperty ()
Returns the ObjectProperty AJO for the initial directory.
An AJO around the initialDirectory ObjectProperty.showDialog (object WindowObj)
Shows the directory chooser dialog. Requires a live JavaFX Window; for a wrapped fxApp use show(MainStage).
WindowObj is the owner javafx.stage.Window wrapper.An AJO around the selected java.io.File or null.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.