Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Resetting a Radio Button Group

Posted on 1997-11-14
1
Medium Priority
?
177 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 200 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

722 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