Target.java
1    /* 
2     * Program to paint the Target logo in the context of the Nonrepresentational Painting World, NPW 
3     */
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   public class Target {
13   
14       private void paintTheImage() {
15           SPainter klee = new SPainter("Target", 600, 600);
16           SCircle dot1 = new SCircle (300);
17           klee.setColor(Color.RED);
18           klee.paint(dot1);
19           SCircle dot2 = new SCircle (200);
20           klee.setColor(Color.WHITE);
21           klee.paint(dot2);
22           SCircle dot3 = new SCircle (100);
23           klee.setColor(Color.RED);
24           klee.paint(dot3);
25       }
26   
27       //REQUIRED INFRASTRUCTURE
28   
29       public Target() {
30           paintTheImage();
31       }
32   
33       public static void main(String[] args) {
34           SwingUtilities.invokeLater(new Runnable() {
35               public void run() {
36                   new Target();
37               }
38           });
39       }
40   
41   }