72
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:
Next TopicJavaFX CheckBox