home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-02-21 | 610 b | 30 lines |
- import java.awt.*;
- import java.applet.*;
-
- public class FaceApplet extends Applet
- {
- public void paint(Graphics g)
- {
- // Head.
- g.drawOval(40, 40, 120, 150);
-
- // Eyes.
- g.drawOval(57, 75, 30, 20);
- g.drawOval(110, 75, 30, 20);
-
- // Pupils.
- g.fillOval(68, 81, 10, 10);
- g.fillOval(121, 81, 10, 10);
-
- // Nose.
- g.drawOval(85, 100, 30, 30);
-
- // Mouth.
- g.fillArc(60, 130, 80, 40, 180, 180);
-
- // Ears.
- g.drawOval(25, 92, 15, 30);
- g.drawOval(160, 92, 15, 30);
- }
- }
-