Many applets implement the paint method to draw the applet's representation within a browser page.
For an overview of the Component class, and the AWT in general, see the Overview of the Java UI trail. Within the overview, the architecture of the AWT drawing system is discussed on the Drawing page. Applets inherit a group of event-handling methods from the Component class. The Component class defines several methods, such as action and mouseDown , for handling particular types of events, and then one catch-all method called handleEvent . To react to an event, an applet must override either the appropriate event-specific method or the handleEvent method.