/* * A program that paints a target symbol */ package npw; import java.awt.Color; import javax.swing.SwingUtilities; import painter.SPainter; import shapes.SCircle; public class Target { // Required infrastructure public Target(){ paintTheImage(); } private void paintTheImage(){ SPainter klee = new SPainter("Red Dot",1000,1000); SCircle dot1 = new SCircle(400); klee.setColor(Color.RED); klee.paint(dot1); SCircle dot2 = new SCircle(250); klee.setColor(Color.WHITE); klee.paint(dot2); SCircle dot3 = new SCircle(100); klee.setColor(Color.RED); klee.paint(dot3); } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable(){ public void run(){ new Target(); } }); } }