Life-Cycle of Applet
Life-Cycle of Applet
- init( )
- initializes the applet each time it is loaded or reloaded,
- such as defining its layout, parsing parameters, or setting background colors.
- start( )
- starts the execution of an applet
- when the applet gets loaded or
the page is revisited.
- mainly used when implementing threads.
- stop( )
- stops the execution of an applet
- when the user leaves the page, the page is hidden, or when the user quits the browser.
- destroy( )
- cleans up the resources held up by the applet before unloading the applet.
Notes: