Here’s a fun Java demo program that displays a smiley using Java’s painting API. Furthermore, we track the mouse movement using MouseMotionListener and make the smiley always “look at” the mouse cursor! To make it more “realistic”, the mouse cursor is changed to a fly! Have fun with this program! To run, use the following […]