|
-
September 28th, 1999, 05:03 PM
#1
How to URGENT::uncheck the checkboxes
I've two checkboxes in an applet, along with the reset button. User can check either checkbox, and should be able to uncheck(reset everything) the checkbox by clicking Reset button. Eventhough I've code checkbox1.setState(false) and Checkbox2.setState(false), the applet still shows the previously checked mark on the checkbox. How can I refresh the screen???
Please help me.
Thanks.
-
September 30th, 1999, 01:23 PM
#2
Re: How to URGENT::uncheck the checkboxes
Just refresh the Control it self
u can do a Checkbox1.refresh it works cause it has been used b4.
goodluck thou!!
"I think I am - therefore I am"
-
September 30th, 1999, 03:00 PM
#3
Re: How to URGENT::uncheck the checkboxes
I tried to use checkbox.refresh(); and it spit out an error saying that refresh is not a defined method for class checkbox.
-
September 30th, 1999, 03:03 PM
#4
Re: How to URGENT::uncheck the checkboxes
Okay Hold on I will find it and send u a solution asap.....okay
Peace....
"I think I am - therefore I am"
-
September 30th, 1999, 04:14 PM
#5
Re: How to URGENT::uncheck the checkboxes
Component yourComp // in your case checkbox
yourComp.invalidate();
yourComp.repaint();
Meher
-
October 21st, 1999, 01:07 PM
#6
Re: How to URGENT::uncheck the checkboxes
I've found the solution to this, which is as follows.
CheckBoxGroup.setSelectedCheckbox(null);
Thanks to all the responses to this problem.
Wasim Muhammad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|