Forums Register Login

JRadioButton

+Pie Number of slices to send: Send
How do I deselect JRadioButtons? Method setSelected(false) is not working. Basically I want a user to be able to choose only one name between two, but can also choose neither name (by leaving the buttons deselected).
1
+Pie Number of slices to send: Send
Presuming you're using a ButtonGroup, call ButtonGroup.clearSelection().
Everyone is a villain in someone else's story. Especially this devious tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 691 times.
Similar Threads
setting and retrieving values for JRadioButton
10 shuffling question
JRadio Button : Event Listener
<identifier> expected
RadioGroup with JRadioButton
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:51:48.