Applet Life Cycle

import javax.swing.JApplet;
import javax.swing.JOptionPane;
public class AppletLifeCycle extends JApplet 
{
	@Override
	public void init() 
	{
		super.init();
		JOptionPane.showMessageDialog(null,"init","init invoked",0);
	}
	@Override
	public void start() 
	{
		super.start();
		JOptionPane.showMessageDialog(null,"start","start invoked",1);
	}
	@Override
	public void stop() 
	{
		super.stop();
		JOptionPane.showMessageDialog(null,"stop","stop invoked",2);
	}
	@Override
	public void destroy() 
	{
		super.destroy();
		JOptionPane.showMessageDialog(null,"destroy","destroy invoked",0);
	}
}

Download

Applet in Swing

Simple Applet
Applet life cycle
Parameter in Applet
Manu bar in Applet


Write your Comment

Name :
Email Id : [ We will not publish your email id ]
Your Comment : [ Maximum 200 chars ]
Enter Security code