// Marty Stepp, CSE 142, Autumn 2008 // This program draws simple shapes. import java.awt.*; // so that I can use Graphics public class DrawShapes { public static void main(String[] args) { DrawingPanel panel = new DrawingPanel(300, 200); Graphics g = panel.getGraphics(); g.setColor(Color.RED); g.drawRect(10, 70, 80, 30); g.fillOval(10, 70, 800, 30); g.setColor(Color.BLUE); g.drawLine(100, 30, 110, 150); g.drawString("142 is great", 30, 30); } }