Applet Life Cycle

java packages » java.applet
All applets have the following four lifecycle methods:
  • init -> Applet can initialize itself.
  • start ->Applet can start running.
  • stop ->Applet can stop running.
  • destroy ->Applet can perform a final cleanup, in preparation for being unloaded.
Java Example Program / Sample Source Code
Html Code
<html>
    <head>
    <title>AppletLifecycle</title>
    </head>
    <body>
        <applet code="AppletLifecycle" width="700" height="500"></applet>
    </body>
</html>

Applet


AppletContext

2011-2012 JavaExamples.org Privacy Policy Powered by Google App Engine