Java Applets - lifecycle - I

20 June 2008

I plan to talk about applet lifecyclw in the next two posts.

Applets have following 4 methods.

public void init();
public void start();
public void stop();
public void destroy();

init method is used to initialize the applet each time it’s loaded (or reloaded).
start method to start the applet’s execution, such as when the applet is loaded or when the user revisits a page that contains the applet.
stop to stop the applet’s execution, such as when the user leaves the applet’s page or quits the browser.
destroy method is used to perform a final cleanup in preparation for unloading.

Applets inherit these methods from their super class java.applet.Applet.

Do follow the next post for example.

del.icio.us:Java Applets - lifecycle - I  digg:Java Applets - lifecycle - I  spurl:Java Applets - lifecycle - I  wists:Java Applets - lifecycle - I  simpy:Java Applets - lifecycle - I  newsvine:Java Applets - lifecycle - I  blinklist:Java Applets - lifecycle - I  furl:Java Applets - lifecycle - I  reddit:Java Applets - lifecycle - I  fark:Java Applets - lifecycle - I  blogmarks:Java Applets - lifecycle - I  Y!:Java Applets - lifecycle - I  smarking:Java Applets - lifecycle - I  magnolia:Java Applets - lifecycle - I  segnalo:Java Applets - lifecycle - I  gifttagging:Java Applets - lifecycle - I

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: Java Applets - lifecycle - I

Leave a Reply