Q:

Java Applet Life Cycle program

0

This Program is used to demonstrate the Java Applet Life Cycle program.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

/* Applet Life Cycle Example */

import java.applet.Applet;
import java.awt.Graphics;

public class AppLife extends Applet
{
public void init() 
{
super.init();
}

public void start() 
{
super.start();
}

public void stop() 
{
super.stop();
}

public void paint(Graphics g) 
{
g.drawString("Welcome",100,100);
}

public void destroy() 
{
super.destroy();
}
}



/* <applet code="AppLife.class" width=100 height=100>
</applet> */

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now