Drawing on Objects
l
In order to draw in a frame or other
objects, an Object of class
Graphics
l
must first be obtained for the frame. This
is referred to as a graphics
context
. This
is done using the call
l
getGraphics()
l
which returns a Graphics object.