Peter Norell
Posts: 5
Nickname: bithir
Registered: Dec, 2002
|
|
Re: Applet destroying
|
Posted: Dec 3, 2002 5:36 AM
|
|
Applets have a well defined life-cycle that is out-of-scope for the applet developer.
These methods include, but are not limited to:
public void init()
public void start()
public void stop()
public void destroy()
As applets are instantiated and run by an applet-container, these method are called by the applet-container. That means you do not call them yourself, but the applet containers calls them aproperiatly. For instance, when the user leaves the page where the applet is running, the applet-container will call destroy() in your applet, allowing you to do some clean-up before it will dereference your applet.
Regards, Peter Norell
|
|