Associates a Pen object with the Graphics object.
public final void setPen( Pen pen )
pen
A Pen object that describes the pen to associate with this object.
After you associate a pen with a Graphics object, the object uses that pen to draw all lines, polygons, and ellipses. You can change the pen associated with a Graphics object as often as you want.
See Also getPen