Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
Swing / AWT / SWT
JRadioButton
Tyson Lindner
,
Ranch Hand
Aug 15, 2013 13:50:08
(0 cow)
(0 skulls)
+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).
Brian Cole
,
Author
Aug 23, 2013 14:17:10
(0 cow)
(0 skulls)
1
+Pie
Number of slices to send:
Send
Presuming you're using a ButtonGroup, call ButtonGroup.clearSelection().
Post by:
autobot
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
.