Click to See Complete Forum and Search --> : How to URGENT::uncheck the checkboxes


wmuhammad
September 28th, 1999, 05:03 PM
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.

Coder
September 30th, 1999, 01:23 PM
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
I tried to use checkbox.refresh(); and it spit out an error saying that refresh is not a defined method for class checkbox.

Coder
September 30th, 1999, 03:03 PM
Okay Hold on I will find it and send u a solution asap.....okay
Peace....

"I think I am - therefore I am"

meherss
September 30th, 1999, 04:14 PM
Component yourComp // in your case checkbox
yourComp.invalidate();
yourComp.repaint();





Meher

wmuhammad
October 21st, 1999, 01:07 PM
I've found the solution to this, which is as follows.

CheckBoxGroup.setSelectedCheckbox(null);

Thanks to all the responses to this problem.
Wasim Muhammad