Draw Smiley Face Java Nested Panels

Draw Smiley Face Java Nested Panels

1. Creating Smiley Face

This tutorial, "Draw Smiley Face Java Nested Panels", gives command over graphics to a novice. Fill ovals and arc are arranged in such way it looks smiley face. For beautification, a background color of pink (predefined color) is given.

Example on Smiley Face


Just change the mouth arc as follows to see a sad face.

g.drawArc(110,150,100,100,0,180);

Leave a Reply

Your email address will not be published. Required fields are marked *