Forums Register Login

Get selected item from ButtonGroup of checkboxes.

+Pie Number of slices to send: Send
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???
+Pie Number of slices to send: Send
Anisha,

Can you show us what you have done so far with the code?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
I have already tried to google but don't find any proper solution.
+Pie Number of slices to send: Send
study the methods of the buttonGroup,
or simply loop through an array of the
checkBoxes looking for the selected one
Do not threaten THIS beaver! Not even with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1242 times.
Similar Threads
JTable and JCheckboxes
Create a Form with iterating rows, with the same data
JRadioButton
getParameterMap and unselected checkboxes
ButtonGroup problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:00:05.