Home » JavaFX RadioButton

JavaFX RadioButton

by Online Tutorials Library

RadioButton

The Radio Button is used to provide various options to the user. The user can only choose one option among all. A radio button is either selected or deselected. It can be used in a scenario of multiple choice questions in the quiz where only one option needs to be chosen by the student.

The following code shows how one radio button is selected from a toggle group.

Output:

JavaFX RadioButton

Next TopicJavaFX CheckBox

You may also like