ToggleGroup is not a control. When you created ToggleButton, you can select it in SceneBuilder. Then you will find the box on the right side inside the inspector called "Toggle Group". Add a name there and SceneBuilder will put ToggleButton along with all the other ToggleButtons that you give the same group name to ToggleGroup. You can enter a group of switches into your controller in the usual way.
source share