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

fullCircle.java

import java.awt.*;		// make the graphics libraries available
import java.applet.*;	// make the applet libraries available

public class FullCircle extends Applet	// make a new applet
{
											// variable for x co-ordinate
											// variable for y co-ordinate
											// variable for diameter
											// variable for area
											// variable for circumference

											
	public void paint(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

	}
	
}