public void init() - executed once when applet starts up
Usually includes all code for layout and initialization of object creation
public void start() - executed after init & every time return to page containing applet
public void stop() - called to stop applet (usually not necessary)
public void destroy() - called when applet being removed from memory
- used to release or destroy any resources in use.
Omit method calls to super, setVisible, or setSize. Note that default layout manager for Applet is FlowLayout (rather than BorderLayout used by Frame) so may have to explicitly setLayout if desire layout different from FlowLayout.
If no interaction with environment then can consider start() as the main program and call other methods from there. If applet works via interaction with environment then often omit start() or just have it reinitialize state so can start over.