// Unit01vST.java // 07-17-10 by Leon Schram // Student starting version of the Unit01 lab assignment. import java.awt.*; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import java.util.Random; public class Unit01vST extends Frame implements WindowListener { public Unit01vST() { this.addWindowListener(this); repaint(); } public void paint(Graphics g) { grid(g); lines(g); openRectangles(g); filledRectangles(g); openOvals(g); filledOvals(g); openArcs(g); filledArcs(g); settingColors(g); openPolygons(g); filledPolygons(g); polyLines(g); randomPixels(g); } public void grid(Graphics g) { g.drawRect(50,50,800,600); for (int x = 250; x < 850; x+= 200) g.drawLine(x,50,x,650); for (int y = 250; y < 650; y+= 200) g.drawLine(50,y,850,y); } public void lines(Graphics g) { } public void openRectangles(Graphics g) { } public void filledRectangles(Graphics g) { } public void openOvals(Graphics g) { } public void filledOvals(Graphics g) { } public void openArcs(Graphics g) { } public void filledArcs(Graphics g) { } public void settingColors(Graphics g) { } public void openPolygons(Graphics g) { } public void filledPolygons(Graphics g) { } public void polyLines(Graphics g) { } public void randomPixels(Graphics g) { } public static void main(String [] args) { Unit01vST f = new Unit01vST (); f.setSize(1000,800); f.setVisible(true); f.setLayout(new FlowLayout()); } public void windowClosing(WindowEvent e) { dispose(); System.exit(0); } public void windowOpened(WindowEvent e) { } public void windowIconified(WindowEvent e) { } public void windowClosed(WindowEvent e) { } public void windowDeiconified(WindowEvent e) { } public void windowActivated(WindowEvent e) { } public void windowDeactivated(WindowEvent e) { } }