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.
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"
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.
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"
Re: How to URGENT::uncheck the checkboxes
Component yourComp // in your case checkbox
yourComp.invalidate();
yourComp.repaint();
Meher
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