Introduction to OOP: Chapter 18 : Patterns and Frameworks [next] [previous] [audio] [real] [text]

The Java API

In the Java Applet API the user subclasses from Applet, then defines the following methods:

init() Invoked when the applet is initialized.
start() Invoked when the application is started.
paint(Graphics) Invoked when window is to be redrawn.
mouseDown(Event, int, int) Invoked when the mouse is pressed.
keyDown(Event, int) Invoked when key is pressed.
stop() Invoked when the window is removed.
Intro OOP, Chapter 18, Slide 6

API stands for Applicatin Programming Interface