Graphics Methods

The java.awt.Graphics class provides numerous methods for drawing shapes and changing colors. These methods can be accessed through a reference to the current Graphics object. In an Applet, the Graphics object is obtained through the method getGraphics().

1.  Drawing Operations

    Example

 

2.  Colors and Fonts

 

3.  Drawing Mode

 

© 1996-98 Marty Hall, 1999 Lawrence M. Brown