Online Software Educational Training - IT Tutorials - Online Education Training for Computer Software


Home

JAVA APPLET

Drawing Ellipses and Circle

To draw an ellipse use drawOval(). To fill an ellipse, use fillOval() method. These methods are shown here:

void drawOval(int top, int left, int width, int height)

void fillOval(int top, int left, int width, int height)

Here is an example to draw ellipses and circles






Previous

Next