1 package npw; 2 3 import painter.SPainter; 4 import shapes.SCircle; 5 6 import javax.swing.*; 7 import java.awt.*; 8 9 public class Target { 10 11 12 private void paintTheImage() { 13 SPainter klee = new SPainter("Target",600,600); 14 SCircle Target = new SCircle(185); 15 klee.setColor(Color.RED); 16 klee.paint(Target); 17 SCircle Dot = new SCircle(135); 18 klee.setColor(Color.WHITE); 19 klee.paint(Dot); 20 SCircle Point = new SCircle(75); 21 klee.setColor(Color.RED); 22 klee.paint(Point); 23 } 24 //REQUIRED INFRASTRUCTURE 25 26 public Target() { 27 28 paintTheImage(); 29 } 30 31 public static void main(String[] args) { 32 SwingUtilities.invokeLater(new Runnable (){ 33 public void run() { new Target(); } 34 }); 35 } 36 37 } 38