import java.applet.Applet;
import java.awt.Graphics;
public class NewApplet extends Applet {
String s=" ";
public void init()
{
s+="init";
}
public void start()
{
s+="start";
}
public void stop()
{
s+="stop";
}
public void destroy()
{
System.out.println("Destroy");
}
public void paint(Graphics g)
{
g.drawString(s,100,100);
}
}
Comments