/* * Program to paint a value dot in the context of the 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(150); SCircle ring = new SCircle(100); SCircle bullseye = new SCircle(50); klee.setColor(Color.RED); klee.paint(dot); klee.setColor(Color.white); klee.paint(ring); klee.setColor(Color.RED); klee.paint(bullseye); } //REQUIRED INFASTRUCTURE public Target() { paintTheImage(); } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { new Target(); } });} }