Applet Initialization and Termination:
It is very important to understand the order in that the several methods displays in the skeleton are called. Whenever an applet begins, the AWT calls the subsequent methods, in this sequence:
1. init()
2. start()
3. paint()
Whenever an applet is terminated, the following sequence of method calls takes place.
1. stop()
2. destroy()
Let's look more closely at these methods. init()
The init() method is the first method to be called . That is where you should initialize variables. This method is called only at one during the run time of your applet.