Applet Sequence

Before we leave this application, we can mention some of the significant events in an applets life. The class Applet defines a very structured sequence of operations. The method init is used to initialize an applet. The methods mouseDown and keyPressed are used to respond to user initiated events. The method paint is used to repaint the screen. Although not used in this program, the methods start and stop can be used to begin and halt the execution of an applet.

[audio] [real] Text to accompany slide22, in Chapter 8 of An Introduction to Object-Oriented Programming