/home/akc/NetBeansProjects/CS1/src/npw/BlueDot.java
 1 /*
 2  * Program to paint a blue dot 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 /**
14  *
15  * @author akc
16  */
17 public class BlueDot {
18 
19     // THE SOLUTION TO THE BLUE DOT PROBLEM
20     
21     private void paintTheImage() {
22         SPainter klee = new SPainter("Blue Dot",600,600);
23         SCircle dot = new SCircle(200);
24         klee.setColor(Color.BLUE);
25         klee.paint(dot);
26     }
27     
28     // REQUIRED INFASTRUCTURE
29     
30     public BlueDot() {
31         paintTheImage();
32     }
33     
34     public static void main(String[] args) {
35         SwingUtilities.invokeLater(new Runnable() {
36             public void run() {
37                 new BlueDot();
38             }
39         });
40     }
41     
42 }
43