Target.java
1    /* 
2     * Program to paint the Target logo 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 Dottie = new SPainter("Target",600,600);
16           SCircle dot3 = new SCircle (150);
17           Dottie.setColor(Color.RED);
18           Dottie.paint(dot3);
19           SCircle dot2 = new SCircle(100);
20           Dottie.setColor(Color.WHITE);
21           Dottie.paint(dot2);
22           SCircle dot = new SCircle(50);
23           Dottie.setColor(Color.RED);
24           Dottie.paint(dot);
25   
26       }
27   
28       // REQUIRED INFRASTRUCTURE
29   
30       public Target(){
31           paintTheImage();
32       }
33       public static void main(String[] args) {
34           SwingUtilities.invokeLater(new Runnable() {
35               public void run () {
36                   new Target();
37               }
38           });
39       }
40   }