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.
- Public void destory().
- Public string get applet info().
- Public string [] [] get parameter info ().
- Public void init() //empty
- Public void start () //empty
- Public void stop () // empty
Cycle of Applet :
- Void start() for initialization, first method to be called by JUM.
- Start() ready for running.
- Paint() drawing on the applet screen.
- Stop() to suspend the execution of applet.
- Destroy () final cleanup like destructor in C++.
No comments:
Post a Comment