JavaFX ToggleGroup in SceneBuilder

In JavaFX, there is a ToggleGroup control. I installed SceneBuilder , version:

 Product Version JavaFX Scene Builder 8.0.0 Build Information Version 8.0.0 Date: 2015-03-25 Java Version: 1.8.0_40-b25, Oracle Corporation 

I can not find this control in SceneBuilder :

screenshot scenebuilder

Can you help me?

Thank you for your help!

+5
source share
2 answers

You can set it in properties. This is not a visual control, but a grouping.

enter image description here

+15
source

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.

+5
source

Source: https://habr.com/ru/post/1240619/


All Articles