/* *program to paint a target in the context of the non represengational painting world, npw * */ package npw; import java.awt.Color; import javax.swing.SwingUtilities; import painter.SPainter; import shapes.SCircle; public class target { //solution to target problem private void paintTheImage(){ SPainter klee = new SPainter("target" , 600 , 600); SCircle outerlayer = new SCircle(200); SCircle midlayer = new SCircle(100); SCircle innerlayer = new SCircle(50); klee.setColor(Color.RED);klee.paint(outerlayer); klee.setColor(Color.WHITE);klee.paint(midlayer); klee.setColor(Color.RED);klee.paint(innerlayer); } //required infrastructure public target(){ paintTheImage(); } public static void main(String[] args){ SwingUtilities.invokeLater(new Runnable() { @Override public void run() { new target(); } }); } }