Solved

Clear the Applet screen

Posted on 1998-10-28
1
646 Views
Last Modified: 2008-07-03
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
Comment
Question by:osnat
1 Comment
 
LVL 1

Accepted Solution

by:
omok earned 10 total points
ID: 1226511
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question