/home/ffrigin/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 painter.SPainter;
12 import shapes.SCircle;
13 
14 /**
15  *
16  * @author ffrigin
17  */
18 public class BlueDot {
19 
20     // THE SOLUTION TO THE BLUE DOT PROBLEM
21     
22     private void paintTheImage() {
23         SPainter klee = new SPainter("Blue Dot",600,600);
24         SCircle dot = new SCircle (200);
25         klee.setColor(Color.BLUE);
26         klee.paint(dot);
27     }
28     
29     //REQUIRED INFRASTRUCTURE
30     
31     public BlueDot() {
32         paintTheImage();
33     }
34     
35     public static void main(String[] args) {
36         SwingUtilities.invokeLater(new Runnable(){
37             public void run () {
38                 new BlueDot();
39             }
40         });
41         // TODO code application logic here
42     }
43 
44 }
45