/* *Program to paint a target 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 Target PROBLEM private void paintTheImage() { SPainter klee = new SPainter("Target",600,600); SCircle target = new SCircle(200); klee.setColor(Color.RED); klee.paint(target); SCircle circle = new SCircle(133); klee.setColor(Color.WHITE); klee.paint(circle); SCircle inside = new SCircle(65); klee.setColor(Color.RED); klee.paint(inside); } //REQUIRED INFRASTRUCTURE public Target() { paintTheImage(); } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { new Target(); } }); } }