From Java Tutorial - Spring 1997 Part 3:Graphics and the Abstract Windowing Toolkit Peking Tutorial, Web Certificate -- Spring-Summer 1997. byNancy J. McCracken,Geoffrey C. Fox
In this example, update does all the drawing. It also sets a background color rectangle with a 1 pixel border in the foreground color.