JavaFX 21 Tutorial 7 - ChoiceBox

Опубликовано: 16 Октябрь 2024
на канале: Ken
247
4

In this tutorial, I will show you how to use a ChoiceBox using JavaFX 21 with IntelliJ 2023.2.4 on Windows 11 x64.

The ChoiceBox is used for presenting the user with a relatively small set of predefined choices from which they may choose.

The ObservableList is a collection that is capable of notifying UI controls when objects are added, updated (selected), and removed.

In this example, it allows a user to choose one item out of ten from choice box components.

#javafx #choicebox