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.java
You can also refer https://www.geeksforgeeks.org/different-ways-to-run-applet-in-java to run applet program .
My Personal Notes arrow_drop_up
Please Login to comment...