Java Graphics  «Prev 

Graphics and the Abstract Windowing Toolkit (AWT)

1) The color attribute specifies the color used by a Graphics object to draw lines and fill rectangles, among other things. You can access the color attribute using the getColor() and setColor() methods
The color attribute specifies the color used by a Graphics object to draw lines and fill rectangles, among other things. You can access the color attribute using the getColor() and setColor() methods

2) The background color attribute specifies the background color of the graphic context onto which you are drawing. You can access this attribute using the getBackgroundColor() and setBackgroundColor() methods.
The background color attribute specifies the background color of the graphic context onto which you are drawing. You can access this attribute using the getBackgroundColor() and setBackgroundColor() methods.

3) The font attribute specifies the font used to draw text onto the graphics context. You can access this attribute using the getFont() and setFont() methods
The font attribute specifies the font used to draw text onto the graphics context. You can access this attribute using the getFont() and setFont() methods.

The java.awt.peer package

The interfaces in the java.awt.peer package are part of the Java platform but are documented for use by AWT implementors only.
Applications that use these interfaces directly are not portable.