Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

Java: JRadio Button

       c1=new JRadioButton(" apple ");
        c2=new JRadioButton("    Orange     ");
 
        btGroup=new ButtonGroup();
       
        btGroup.add(cou1);
        btGroup.add(cou2);
        btGroup.add(cou3);
        Hi, i have radio buttons that are in a group. I am trying to get the value of the radio button that i select. how do i do that ?
0
zizi21
Asked:
zizi21
1 Solution
 
zizi21Author Commented:
hi,
if i use the getActionCommand() to get the string, than i have problem using it for buttons..coz, currently,
i am using actionPerformed for my jbuttons as well.
It is it possible to refresh the actioncommand ?
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now