wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Get selected item from ButtonGroup of checkboxes. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Get selected item from ButtonGroup of checkboxes." Watch "Get selected item from ButtonGroup of checkboxes." New topic
Author

Get selected item from ButtonGroup of checkboxes.

Singh Anisha
Ranch Hand

Joined: May 09, 2012
Posts: 100

In my program i added checkboxes to buttongroup to act them as radiobutton.
And i want the itemLabel when any checkbox from them get selected.
How to do that???
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1479
    
    6

Anisha,

Can you show us what you have done so far with the code?


Swastik
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
general suggestion:

think of the specific keywords in your post.
google those keywords

you may be surprised how much sample code you'll find,
and most will have the answer to your problem.

much quicker than posting/waiting.
Singh Anisha
Ranch Hand

Joined: May 09, 2012
Posts: 100

I have already tried to google but don't find any proper solution.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
study the methods of the buttonGroup,
or simply loop through an array of the
checkBoxes looking for the selected one
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Get selected item from ButtonGroup of checkboxes.