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

bullseye.java

import java.awt.*;			// make of existing graphics code
import java.applet.*;		// make of existing applet code

// Create an applet and draw a small circle on
// the screen.


public class Bullseye extends Applet	// this is the applet
{
	public void paint(Graphics g)	   // this does the drawing
	{
		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

	}
}