Target.java
1    /* 
2     * Program to paint a target icon in the context of the Nonrepresentational 
3     * Painting World, NPW. 
4     */
5    
6    package npw;
7    
8    import java.awt.Color;
9    import javax.swing.SwingUtilities;
10   import painter.SPainter;
11   import shapes.SCircle;
12   
13   public class Target {
14       private void paintTheImage() {
15           SPainter klee = new SPainter("Target",600,600);
16           SCircle dot = new SCircle(200);
17           SCircle dot2 = new SCircle (125);
18           SCircle dot3 = new SCircle(50);
19           klee.setColor(Color.RED);
20           klee.paint(dot);
21           klee.setColor(Color.WHITE);
22           klee.paint(dot2);
23           klee.setColor(Color.RED);
24           klee.paint(dot3);
25   
26       }
27       public Target() {
28           paintTheImage();
29       }
30   
31       public static void main (String[] args) {
32           SwingUtilities.invokeLater(new Runnable() {
33               public void run() {
34                   new Target();
35               }
36           });
37       }
38   }
39   
40   
41