Javatpoint Logo
Javatpoint Logo

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




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA