Target.java
1    package npw;
2    
3    import java.awt.*;
4    import java.awt.Color;
5    import javax.swing.SwingUtilities;
6    import painter.SPainter;
7    import shapes.SCircle;
8    
9    public class Target {
10   
11       private void paintTheImage() {
12           SPainter klee = new SPainter("Target Logo" , 600, 600);
13           SCircle bigDot = new SCircle(200);
14           klee.setColor(Color.RED);
15           klee.paint(bigDot);
16   
17           SCircle mediumDot = new SCircle(135);
18           klee.setColor(Color.WHITE);
19           klee.paint(mediumDot);
20   
21           SCircle smallDot = new SCircle(85);
22           klee.setColor(Color.RED);
23           klee.paint(smallDot);
24   }
25   
26       public Target() { paintTheImage(); }
27   
28       public static void main(String[] args) {
29           SwingUtilities.invokeLater(new Runnable() {
30               public void run() {
31                   new Target();
32               }
33           });
34       }
35   
36   }
37