g2.
setPaint
(new
Color
(255,0,0));//red
Figure 3