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. |