Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Removing an added Java GUI Component from an applet

  Asked By: Adelina    Date: Feb 21    Category: Java    Views: 1682
  

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?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Removing an added Java GUI Component from an applet Or get search suggestion and latest updates.




Tagged: