Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: ChoiceBox
Wraps FXGL's FXGLChoiceBox, a JavaFX ChoiceBox subclass with FXGL theme styling. The underlying ChoiceBox is generic; items are added as raw values.
FXGLChoiceBox (Items = null)
Creates a new empty FXGLChoiceBox.
addItem (Item)
Adds an item to the choice list.
Item is the value to add.this objectgetValue ()
Returns the currently selected value.
The selected value.setValue (Value)
Sets the selected value (must already be in the items list).
Value is the new selection.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.