Target.java
1    /* 
2    * Code for Target logo 
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   
13   public class Target {
14   
15       ///To Create the Target logo///
16       private void paintTheImage() {
17           SPainter DotGuy = new SPainter("Target", 600, 600);
18   
19           SCircle dot = new SCircle(200);
20           DotGuy.setColor(Color.RED);
21           DotGuy.paint(dot);
22   
23           SCircle dot2 = new SCircle(133);
24           DotGuy.setColor(Color.WHITE);
25           DotGuy.paint(dot2);
26   
27           SCircle dot3 = new SCircle(67);
28           DotGuy.setColor(Color.RED);
29           DotGuy.paint(dot3);
30   
31       }
32       //Required Infrastructure
33       public Target() {
34           paintTheImage();
35       }
36   
37       public static void main(String[] args) {
38           SwingUtilities.invokeLater(new Runnable() {
39               public void run () {
40                   new Target();
41               }
42           });
43   
44       }
45   }
46