BlueDot.java
1    
2    /* 
3    *Program to paint a blue dot in the context of the Nonrepresentational* 
4    *Painting World, NPW. 
5    */
6    
7    package npw;
8    
9    import java.awt.Color;
10   import javax.swing.SwingUtilities;
11   
12   import painter.SPainter;
13   import painter.SPainter;
14   import shapes.SCircle;
15   import shapes.SCircle;
16   
17   public class BlueDot {
18       //THE SOLUTION TO THE BLUE DOT PROBLEM
19   
20       private void paintTheImage() {
21           SPainter klee = new SPainter("Blue Dot",600,600);
22           SCircle dot = new SCircle(200);
23           klee.setColor(Color.BLUE);
24           klee.paint(dot);
25       }
26       //REQUIRED INFRASTRUCTURE
27       public BlueDot(){
28           paintTheImage();
29       }
30       public static void main (String []args){
31           SwingUtilities.invokeLater(new Runnable() {
32               public void run() {
33                   new BlueDot();
34               }
35           });
36       }
37   }
38   
39   
40