Solved

Resetting a Radio Button Group

Posted on 1997-11-14
1
171 Views
Last Modified: 2010-04-16
I have 3 radio buttons in a Symantec radio button group panel.  How can I make it so that none are selected after I press a button?  I am using java 1.0.2.

if(l_status.equalsIgnoreCase("R"))
{
    rdoRegisteredUser.setState(true);
}
else if(l_status.equalsIgnoreCase("C"))
{
    rdoContributor.setState(true);
}
else if(l_status.equalsIgnoreCase("A"))
{
    rdoAuthor.setState(true);
}

Thanks, HellBentroadhog
0
Comment
Question by:Hellbentroadhog
1 Comment
 
LVL 4

Accepted Solution

by:
russgold earned 50 total points
ID: 1230541
Strictly speaking, it is not proper to have all buttons in a radio group deselected; the idea is that you are making a choice, not initiating an action.  If none of the choices are valid, you should disable the buttons by calling setEnabled( false ) on each of them.

If you still do want to deselect them all, call setSelectedCheckbox( null ) on their associated CheckboxGroup.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now