Example Graphics (cont)
public void paint(Graphics g) {
g.drawString(message, 150, 130);
g.drawRect(10, 50, 80, 50);
g.fillRect(10, 130, 80, 130);
g.drawLine(100, 50, 180, 100);
int[] xPoints = {100, 120, 135, 160, 130};
int[] yPoints = {70, 100, 160, 180, 100};
g.drawPolyline(xPoints, yPoints, 5);
g.drawRoundRect(200, 50, 70, 50, 30, 30);
g.fillRoundRect(280, 50, 100, 50, 30, 30);
g.drawOval(200, 130, 50, 80);