BlueDot.java
/* 
* program to paint a blue dot in the context of Nonrepresentational 
* painting world,NPW. 
*/

package npw;

import painter.SPainter;
import shapes.SCircle;
import javax.swing.*;
import java.awt.*;

public class BlueDot {
    // The solution to the blue dot problem
    private void paintTheimage(){
        SPainter klee = new SPainter("BlueDot",600,600);
        SCircle dot = new SCircle(200);
        klee.setColor(Color.blue);
        klee.paint(dot);
    }

    // required infrastructure
    public BlueDot(){
        paintTheimage();
    }
    public static void main (String[]args){
        SwingUtilities.invokeLater(new Runnable(){
            public void run() {
                new BlueDot();
            }
        });
    }
}