Drawing on Objects
lIn 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
lgetGraphics()
l which returns a Graphics object.