PPT Slide
Recall the specific stages in an applet’s lifecycle.
Called by browser or applet viewer: tells applet that it has been loaded into the system. Is called once per applet.
Called by browser or applet viewer, tells applet to execute.
- public void paint(Graphics g)
Paints the component (draws the component): tells applet
to paint (draw) the contents of a component.
Called by browser or applet viewer:
tells it to stop execution.
Called by browser or applet viewer: tells applet that it is
being killed, that it should destroy resources that it has
allocated so that they can be reclaimed for other use.
Event Driven Programming: Applet Example