g.drawLine(10, 20, 300, 200);
g.drawRect(100, 100, 50, 70);

g.setColor(Color.BLUE);
g.fillOval(x, y, 40, 40);


it's only these lines that are using the paint method....