This question shows research effort; it is useful and clear
-1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
JRadioButton opt[] = new JRadioButton[4];
opt[0].setSelected(false); //not working
JRadioButton r1 = new JRadioButton();
r1.setSelected(false); //working