• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 688
  • Last Modified:

Clear the Applet screen

How can I clear an Applet screen:
I have a list of buttons. Each time I press a button, I want to clear the screen and put new buttons on.
I don't have a paint function.
How do I do it?
What function can I use to clear the screen before painting it again??
0
osnat
Asked:
osnat
1 Solution
 
omokCommented:
Applet is a subclass of Container object.
Use getComponents() to get all components inside the Applet, then remove(Component) each of the components.
Hope this helps.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now