FileDocCategorySizeDatePackage
bullseye.javaAPI DocExample891Wed Feb 21 17:32:36 GMT 2001None

Bullseye

public class Bullseye extends Applet

Fields Summary
Constructors Summary
Methods Summary
public voidpaint(java.awt.Graphics g)

		g.setColor(Color.blue);			// set the drawing pen to blue
		g.fillOval(70, 70, 160, 160); // draw outer the filled circle
			// set the drawing pen to magenta
		   // draw the first inner filled circle
			// set the drawing pen to black
		   // draw the second inner filled circle
			// set the drawing pen to red
		   // draw the bullseye filled circle
		g.setColor(Color.white);
		g.drawString("10", 143, 85); //write the outer value string
			 //write the first inner value string
			 //write the second value string
			 //write the bullseye value string