FileDocCategorySizeDatePackage
fullCircle.javaAPI DocExample938Wed Feb 28 17:05:08 GMT 2001None

FullCircle

public class FullCircle extends Applet

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

		g.setColor(Color.blue);		// set the drawing colour to be blue
		g.fillOval(0, 0, 40, 40);	// draw a circle in the top left hand corner
		g.drawString("The World is a circle", 0, 50);
				// calculate the area and store it in area
				// calculate the circumference and store it in circumference
				// now print out the area and circumference details
				// now increment the x co-ordinate by 15
				// now increment the x co-ordinate by 15
				// now increment diameter by 10