/** * The main method tests the Target class. * 1/16/03 * * @author Jeff Ondich */ import javabook.*; import java.awt.*; class TargetTester { public static void main() { DrawingBoard b = new DrawingBoard(); b.setVisible( true ); Target thisTarget = new Target(); thisTarget.draw( b ); Target thatTarget = new Target( 150, 400, 6, 100, Color.red ); thatTarget.draw( b ); thatTarget.setCenter( 400, 400 ); thatTarget.setRadius( 80 ); thatTarget.setNRings( 10 ); thatTarget.setColor( Color.cyan ); thatTarget.draw( b ); } }