Java

Java Applet Life Cycle program

Java Applet Life Cycle program
/* 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> */
Senthilvelan Sambamoorthy

Senthilvelan Sambamoorthy is working as a Professor in Department of Master of Computer Applications, Paavai Engineering College, Namakkal, Tamilnadu, India, He is Masters in Computers Applications. Having 18+ years of experience and his area of interest is Java, JSP, Servlet, J2EE, C#, PHP, Python ASP.NET, SQL Server and etc.