Solved

Resetting a Radio Button Group

Posted on 1997-11-14
1
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.
Suggested Courses

617 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