Javafx Radio Button Only One Selected. package sample; import javafx. It should be disabled whene
package sample; import javafx. It should be disabled whenever the radio button "couple" is selected. Then you can use it. Let's say we have a radio button named radiobutton1. It is almost similar to the Toggle Button in JavaFX, except that it cannot be unselected once anyone is selected. This is shown below. ObservableValue; import javafx. Radio buttons are normally presented in radio groups (a collection of radio buttons describing a set of related options). The figure below shows a set of radio buttons − RadioButton in JavaFX In JavaFX, the RadioButton class represents a radio button which is a part of the package named javafx. Only one RadioButton can be selected when placed in a ToggleGroup.