Typically, when one of the RadioButtons in a ToggleGroup is selected the application performs an action. Below is an example which prints the user data of the selected RadioButton which has been set with setUserData(Object).
radioButton1.setUserData("awesome")
radioButton2.setUserData(&q...