FileDocCategorySizeDatePackage
Circle.javaAPI DocExample417Tue Feb 06 14:02:18 GMT 2001None

Circle.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 Circle extends Applet	/ this is the applet
{
	public void paint(Graphics g)	// this does the drawing
	{
		g.setColor(Color.blue);
		g.drawOval(120, 120, 60, 60);
		g.drawString("One blue circle", 110, 200);
	}
}