FileDocCategorySizeDatePackage
circle4.javaAPI DocExample824Wed Feb 21 17:35:06 GMT 2001None

Circle4

public class Circle4 extends Applet

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

		g.setColor(Color.green);			// set the drawing pen to green
		g.fillOval(0, 0, 60, 60); // draw the top left filled circle
		g.drawString("One green circle", 0, 80); // write the string
			// set the drawing pen to blue
		   // draw the top right filled circle
		   // write the string
			// set the drawing pen to red
		   // draw the bottom left filled circle
		   // write the string
			// set the drawing pen to magenta
		   // draw the bottom right filled circle
		   // write the string