1 /* 2 *Program to paint the Target Logo in the context of the nonrepresentational 3 * painting world 4 */ 5 package npw; 6 7 import java.awt.Color; 8 import javax.swing.SwingUtilities; 9 10 import painter.SPainter; 11 import shapes.SCircle; 12 13 public class Target { 14 //The Solution to the Target Logo 15 private void paintTheImage() { 16 SPainter Klee = new SPainter ("Target Logo", 700,700); 17 SCircle largered = new SCircle(300); 18 Klee.setColor(Color.RED); 19 Klee.paint(largered); 20 SCircle white = new SCircle (200); 21 Klee.setColor(Color.WHITE); 22 Klee.paint(white); 23 SCircle smallred = new SCircle(100); 24 Klee.setColor(Color.RED); 25 Klee.paint(smallred); 26 27 } 28 //Required infrastructure 29 public Target() { 30 paintTheImage(); 31 } 32 public static void main (String[] args) { 33 SwingUtilities.invokeLater(new Runnable() { 34 public void run(){ 35 new Target(); 36 } 37 }); 38 } 39 } 40