Draw a Smiley in Java Applet
Given task is to draw a smiley face in Java Applet.
- Create three Ovals, one for the face, two for the eyes.
- Fill eyes oval with black color.
- Create an arc for the smile in the face.
Below is the implementation of the above approach:
Note: To run the applet in command line use the following commands
> javac Smiley.java > appletviewer Smiley.html