/* *Program to paint 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 big = new SCircle(300); klee.setColor(Color.RED); klee.paint(big); SCircle small = new SCircle(200); klee.setColor(Color.WHITE); klee.paint(small); SCircle dot = new SCircle(100); klee.setColor(Color.RED); klee.paint(dot); } // REQUIRED INFASTRUCTURE public Target() { paintTheImage(); } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { new Target(); } }); } }