BlueDot.java
1    /* 
2        Program to paint a blue dot in the context of the Nonrepresentational Painting World, NPW. 
3     */
4    package npw;
5    import java.awt.Color;
6    import javax.swing.SwingUtilities;
7    import painter.SPainter;
8    import shapes.SCircle;
9    public class BlueDot {
10       //The Solution to the blue dot problem
11       private void paintTheImage() {
12           SPainter klee = new SPainter("Blue Dot", 1000, 1000);
13           SCircle dot = new SCircle(200);
14           klee.setColor(Color.BLUE);
15           klee.paint(dot);
16       }
17   
18       //required infrastructure
19       public BlueDot() {
20           paintTheImage();
21       }
22   
23       public static void main(String[] args) {
24           SwingUtilities.invokeLater(new Runnable() {
25               public void run() {
26                   new BlueDot();
27               }
28           });
29       }
30   }