/* * Painting a target in lieu of a blue dot in the 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 dot = new SCircle(225); klee.setColor(Color.RED); klee.paint(dot); SCircle dot2 = new SCircle(150); klee.setColor(Color.WHITE); klee.paint(dot2); SCircle dot3 = new SCircle(75); klee.setColor(Color.RED); klee.paint(dot3); } //REQUIRED INFRASTRUCTURE public Target() { paintTheImage(); } public static void main (String[] args){ SwingUtilities.invokeLater(new Runnable(){ public void run(){ new Target(); } }); } }