/home/evankemp/NetBeansProjects/CS1/src/npw/Target.java
 1 /*
 2  * Program to paint a target in the context of the Nonrepresentational 
 3  * Painting World, NPW.
 4  */
 5 package npw;
 6 
 7 import java.awt.Color;
 8 import javax.swing.SwingUtilities;
 9 import painter.SPainter;
10 import shapes.SCircle;
11 
12 /**
13  *
14  * @author evankemp
15  */
16 public class Target {
17     
18     // THE SOLUTION TO THE TARGET PROBLEM
19     
20     private void paintTheImage() {
21         SPainter klee = new SPainter("Target",600,600);
22         SCircle big = new SCircle(150);
23         klee.setColor(Color.RED);
24         klee.paint(big);
25         SCircle medium = new SCircle(100);
26         klee.setColor(Color.WHITE);
27         klee.paint(medium);
28         SCircle small = new SCircle(50);
29         klee.setColor(Color.RED);
30         klee.paint(small);
31     }
32     
33     // REQUIRED INFRASTRUCTURE
34     
35     public Target() {
36         paintTheImage();
37     }
38 
39     public static void main(String[] args) {
40         SwingUtilities.invokeLater(new Runnable() {
41             public void run() {
42                 new Target();
43             }
44         });
45     }
46     
47 }
48