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