Stroking or Filling a Shape // Stroke the shape. g2d.draw(shape); // Fill the shape. g2d.fill(shape);