Java javafx.scene.control ChoiceDialog fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.control ChoiceDialog fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.control ChoiceDialog.

The text is from its open source code.

Constructor

ChoiceDialog(T defaultChoice, @SuppressWarnings("unchecked") T... choices)
Creates a new ChoiceDialog instance with the first argument specifying the default choice that should be shown to the user, and all following arguments considered a varargs array of all available choices for the user.
ChoiceDialog(T defaultChoice, Collection choices)
Creates a new ChoiceDialog instance with the first argument specifying the default choice that should be shown to the user, and the second argument specifying a collection of all available choices for the user.
ChoiceDialog()
Creates a default, empty instance of ChoiceDialog with no set items and a null default choice.

Method

ObservableListgetItems()
Returns the list of all items that will be displayed to users.
voidsetSelectedItem(T item)
Sets the currently selected item in the dialog.