FileDocCategorySizeDatePackage
circle3.javaAPI DocExample676Thu Jul 13 12:05:54 BST 2000None

circle3

public class circle3 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(0, 0, 60, 60); // draw the filled circle
		g.drawString("One blue circle", 0, 80); //write the string
		g.setColor(Color.red);			// set the drawing pen to red
		g.fillOval(120, 120, 60, 60); // draw the filled circle
		g.drawString("One red circle", 110, 200); //write the string