Tom Kelliher, CS 116
Sept. 9, 2002
Postlabs due when?
Lab 2.
public void init() { ... }
is executed exactly one time when
an applet is first created. It is commonly used for setting the colors in
the applet and adding the widgets into the applet.
public void paint(Graphics g) { ... }
is executed every time
the applet needs to be redrawn on the screen.
static
and are part of the class rather than part of an object. They are used by:
ClassName.variableName