The code is:
tg.getToggles().addListener()(
new ListChangeListener(){
public void onChange(Change c){
}
}
)
when the ToggleButtons under the ToggleGroup is clicked,onChange is not executed.
tg.getToggles().addListener()(
new ListChangeListener(){
public void onChange(Change c){
}
}
)
when the ToggleButtons under the ToggleGroup is clicked,onChange is not executed.