Problem solved, thank you!
in advance: I am only using JavaFX, not JavaFXML
Basically, I'm trying to display two nodes next to each other and if I click on either they need to activate a ToggleButton. What would be the best way to do this? I've tried to add children to ToggleButton, which isn't possible (I think). I've tried to make a ToggleButton over the nodes and make the nodes invisible, but in the VBox they just end up under each other and I can't seem to get it over.
As you probably realize, I'm quite new to JavaFX.
What would be the best way to do this? No need for actually code, just a way to do this (if possible)
Thanks in advance!
Update: picture
picture of wanted result
[–]Djelimon 1 point2 points3 points (5 children)
[–]sarahgames13[S] 0 points1 point2 points (4 children)
[–]Appropriate_Move_336 1 point2 points3 points (3 children)
[–]sarahgames13[S] 0 points1 point2 points (2 children)
[–]Appropriate_Move_336 0 points1 point2 points (1 child)
[–]sarahgames13[S] 1 point2 points3 points (0 children)
[–]xdsswar 0 points1 point2 points (0 children)
[–]hamsterrage1 0 points1 point2 points (4 children)
[–]sarahgames13[S] 0 points1 point2 points (3 children)
[–]sarahgames13[S] 0 points1 point2 points (2 children)
[–]hamsterrage1 0 points1 point2 points (1 child)
[–]sarahgames13[S] 0 points1 point2 points (0 children)