Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Leon Hansen   on Jan 13 In Java Category.

  
Question Answered By: James Evans   on Jan 13

You should use ButtonGroup to group your radio buttons.
In below example if jrb1 and jrb2 and jrb3 are JRadioButton instances so group make them as a group so you can just select  one of them.

ButtonGroup group = new ButtonGroup();
group.add(jrb1);
group.add(jrb2);
group.add(jrb3);

Share: 

 

This Question has 9 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on GUI problem Or get search suggestion and latest updates.


Tagged: