How can I remove a added Java component from an
applet?
For e.g.
I have added a CheckboxGroup on to the applet using
the following code:
CheckboxGroup response=new CheckboxGroup();
Checkbox yes=new Checkbox("Yes",response,false);
Checkbox no=new Checkbox("No",response,false);
Checkbox dontknow=new Checkbox("Don't
Know",response,false);
add(yes);
add(no);
add(dontknow);
So when a certain condition in the program is
satisfied I need to remove these components so that
they won't be displayed.
How can this be done?