rankz_VtujUdhflsoFhdgp Applet life cycle - All type study material

Java programming

Java programming

About Me

my self - Harvendra Singh

Search This Blog

Friday, February 7, 2020

Applet life cycle

Applet life cycle -
Every Java applet inherits a set of default behaviours from the Applet class as a result when an applet is loaded, it's undergoes a serious of change in its state as shown in figure. 

The applet status include:
  • Born on initialition state
  • Idle state 
  • Deed.               
Following are some of the method implemented in the Applet class:


  1. Public void destory().
  2. Public string get applet info().
  3. Public string [] [] get parameter info ().
  4. Public void init() //empty
  5.  Public void start () //empty
  6. Public void stop () // empty


 Cycle of Applet :

  1. Void start() for initialization, first method to be called by JUM.
  2. Start() ready for running.
  3. Paint() drawing on the applet screen.
  4. Stop() to suspend the execution of applet.
  5. Destroy () final cleanup like destructor in C++.

No comments:

Post a Comment