Painting into Graphics Example
g.drawLine(100, 50, 180, 100); // draw one line
int[] xPoints = {100, 120, 135, 160, 130};
int[] yPoints = {70, 100, 160, 180, 100};
g.drawPolyline(xPoints, yPoints, 5); // draw one polyline
g.drawRoundRect(200, 50, 70, 50, 30, 30);
g.fillRoundRect(280, 50, 100, 50, 30, 30); // draw 2 Round rectangles
g.drawOval(200, 130, 50, 80); // draw an oval
g.fillOval(270, 130, 100, 100); // fill an oval
g.drawArc(100, 200, 50, 70, 100, 100);
g.fillArc(150, 200, 80, 100, 130, 130);