Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Clear the Applet screen

Posted on 1998-10-28
1
Medium Priority
?
681 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 40 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

885 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