package npw; import java.awt.Color; import javax.swing.SwingUtilities; import painter.SPainter; import shapes.SCircle; // This is a target, not just a blue dot public class Target { private void paintTheImage() { SPainter Bob = new SPainter(" Target ",600,600); SCircle Dot = new SCircle( 150); Bob.setColor(Color.red); Bob.paint(Dot); SCircle Dot2 = new SCircle( 100); Bob.setColor(Color.white); Bob.paint(Dot2); SCircle Dot3 = new SCircle( 50); Bob.setColor(Color.red); Bob.paint(Dot3); } public Target(){ paintTheImage(); } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run () { new Target(); } }); } }