nccsbim071 25 Junior Poster

i successfully created the JAVA
Applet and embedded it in the HTML page.
The applet class is as follows:

import javax.swing.JApplet;
import java.awt.Graphics;

public class HelloWorld extends JApplet

    public void paint(Graphics g) 
       g.drawRect(0, 0,
		   getSize().width - 1,
		   getSize().height - 1);
        g.drawString("Hello World !", 5, 15);

And above is embedded in the HTML file as follows:

<applet codebase="../../build/classes" code="applettest/HelloWorld.class" width=350 height=200></applet>

I successfully view this page in browser.But there is a small problem.
Whenever i minimize the browser or visit anathor page or just go away from the web page with applet without closing it and come back to the same page. The same applet doesn't display clear. Well in my case i can see the Hello World but i also see some background with view of previous visited window. I hope you all experienced programmers know what i am talking about.

I just need to see my applet as clean as i see it first time and every time i go away from it and come back .