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