tweety_bird_bunny
Journeyman
i created a buttongroup and added 4 jradiobuttons to it initially none selected....
however when i select any one of them on execution of the program,,,
as the buttongroup does,,it requires that atleast one button will always be in ON state....
i want that if i unselect that jradiobutton,,, it shoud be unselected ....
so it means dat if i made selection 1 of the four radiobuttons,,on unselecting it ,, it shud be reset to OFF state....without requring me to select any other button to reset my previous selected button...
tried to use button.setSelected(false) but nothing happens....
plz help me to reset the buttongroup to null somehow
however when i select any one of them on execution of the program,,,
as the buttongroup does,,it requires that atleast one button will always be in ON state....
i want that if i unselect that jradiobutton,,, it shoud be unselected ....
so it means dat if i made selection 1 of the four radiobuttons,,on unselecting it ,, it shud be reset to OFF state....without requring me to select any other button to reset my previous selected button...
tried to use button.setSelected(false) but nothing happens....
plz help me to reset the buttongroup to null somehow