View RSS Feed

Java Applet

Java Applet

Rate this Entry
by , 01-08-2012 at 01:41 PM (1122 Views)
Initialization code of the Java applet is written in init() method. It is just like a constructor for an applet.
Java applet contains the following life cycle methods.

init() : This method is used to initialize an applet and only once called in applet life cyle by the browser.

start() : This method is called after init() and contains code to start processing. Start() method is called again, if user leaves current page without killing session.

stop() : This method is used to stop all processing started by Applet.

destroy() : It is called when browser session is terminated. All resources occupied by Applet are released in this method.

Submit "Java Applet" to Facebook Submit "Java Applet" to Digg Submit "Java Applet" to Submit "Java Applet" to StumbleUpon Submit "Java Applet" to Google

Tags: applet Add / Edit Tags
Tutorial , Java Applet