public void fillPolygon(Polygon p){
  g.fillPolygon(p);
}

public void fillPolygon ( Polygon p ) { g . fillPolygon ( p ) ; }
fills the polygon defined by the specified polygon object with the graphics context ' s current color . < p > the area inside the polygon is defined using an even - odd fill rule , also known as the alternating rule .
