Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: FxObj
Wraps JavaFX ChoiceDialog, a dialog that lets the user select one item from a list of choices and returns the selected item. A default choice is shown pre-selected when the dialog opens. Title, header text, and content text can be set to provide context. Call showAndWait() to block until the user confirms or cancels, then inspect the returned value for the chosen item.
ChoiceDialog (DefaultChoice, list Choices)
Creates a new ChoiceDialog with a default choice and a list of options.
DefaultChoice is the initially selected value.Choices is a list of choice values.setTitle (string Title)
Sets the dialog title.
Title is a string with the title.this object for chainingsetHeaderText (string Text)
Sets the header text.
Text is a string with the header.this object for chainingsetContentText (string Text)
Sets the content text.
Text is a string with the content.this object for chainingshowAndWait ()
Shows the dialog and waits for the user to close it.
The result of the dialog.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.