This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JRadioButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JRadioButton" Watch "JRadioButton" New topic
Author

JRadioButton

Tyson Lindner
Ranch Hand

Joined: May 16, 2012
Posts: 172
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
Ranch Hand

Joined: Sep 20, 2005
Posts: 862
Presuming you're using a ButtonGroup, call ButtonGroup.clearSelection().


bitguru blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JRadioButton
 
Similar Threads
JRadio Button : Event Listener
10 shuffling question
setting and retrieving values for JRadioButton
<identifier> expected
RadioGroup with JRadioButton