/home/jfernan6/NetBeansProjects/CSX/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 jfernan6
15  */
16 public class Target {
17 
18     /**
19      * @param args the command line arguments
20      */
21     
22 private void paintTheImage() {
23     SPainter klee = new SPainter("Target", 600,600);
24     SCircle dot = new SCircle(200);
25     klee.setColor(Color.RED);
26     klee.paint(dot);
27     SCircle dot2 = new SCircle(150);
28     klee.setColor(Color.WHITE);
29     klee.paint(dot2);
30     SCircle dot3 = new SCircle(100);
31     klee.setColor(Color.RED);
32     klee.paint(dot3);
33 
34 
35 }
36 
37  public Target (){   
38     paintTheImage();
39  }  
40     
41    
42     public static void main(String[] args) {
43         SwingUtilities.invokeLater(new Runnable(){
44         public void run(){
45                new Target();
46         }
47         });
48 }
49 }