/home/ssingh6/NetBeansProjects/CS1/src/npw/Target.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package npw;
 7 import java.awt.Color;
 8 import javax.swing.SwingUtilities;
 9 import painter.SPainter;
10 import shapes.SCircle;
11 /**
12  *
13  * @author ssingh6
14  */
15 public class Target {
16 
17     /**
18      * @param arpublic class BlueDot {
19 
20     /**
21      * @param args the command line arguments
22      */
23     private void paintTheImage()
24     {
25         SPainter klee= new SPainter("Target",600,600);
26         SCircle dot= new SCircle(200);
27         SCircle kot = new SCircle(150);
28         SCircle mot = new SCircle(66);
29         klee.setColor(Color.RED);
30         klee.paint(dot);
31         klee.setColor(Color.WHITE);
32         klee.paint(kot);
33         klee.setColor(Color.RED);
34         klee.paint(mot);
35     }
36     public Target()
37     {
38         paintTheImage();
39     }
40     public static void main(String[]args)
41     {
42         SwingUtilities.invokeLater(new Runnable() {
43             public void run() {
44                 new Target();
45             }
46         });
47     }
48 
49 }
50