Java Code

/* Purpose: Demonstrate ellipses/ovals and circles
 * @Author : ESBoese
 * @Version : Spring 2007
 */
import java.awt.*;             // access the Graphics object
import javax.swing.*;         // access to JApplet
public class Ellipse extends JApplet
{
        public void paint( Graphics g )
        {
                  g.drawOval( 0,0, 100, 10 );
        }
}

Back to Code Examples
©2006- by E.S.Boese. All Rights Reserved