Target.java
/* 
 * Program to paint a Target in the context of Nonrepresentational 
 * Painting World, NPW. 
 */

package npw;

import java.awt.Color;
import javax.swing.SwingUtilities;
import painter.SPainter;
import shapes.SCircle;

public class Target {

    //THE SOLUTION TO THE BLUE DOT PROBLEM

    private void paintTheImage() {
        SPainter klee = new SPainter("Target",600,600);
        SCircle dot = new SCircle(200);
        klee.setColor(Color.RED);
        klee.paint(dot);
        SCircle sot = new SCircle(135);
        klee.setColor(Color.WHITE);
        klee.paint(sot);
        SCircle bot = new SCircle(75);
        klee.setColor(Color.RED);
        klee.paint(bot);
    }

    //REQUIRED INFRASTRUCTURE

    public Target(){
        paintTheImage();
    }

    public static void main(String[]args){
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                new Target();
            }
        });
    }
}