Target.java
1    package npw;
2    //Making Target Icon
3    import java.awt.Color;
4    import java.awt.Color;
5    import javax.swing.SwingUtilities;
6    import painter.SPainter;
7    import shapes.SCircle;
8    public class Target {
9        private void paintTheImage() {
10           SPainter target = new SPainter("Target", 500, 500);
11           SCircle dottt = new SCircle(225);
12           target.setColor(Color.RED);
13           target.paint(dottt);
14           SCircle dott = new SCircle(150);
15           target.setColor(Color.WHITE);
16           target.paint(dott);
17           SCircle dot = new SCircle(75);
18           target.setColor(Color.RED);
19           target.paint(dot);
20       }
21       public Target() {
22           paintTheImage();
23       }
24   
25       public static void main(String[] args) {
26           SwingUtilities.invokeLater(new Runnable() {
27               public void run() {
28                   new Target();
29               }
30   
31           } );
32       }
33   }
34