Write a gui program that uses the methods in the Graphics class to draw a smiley face when the window is activated, and a frowny face when
the window is deactivated. This will require use of a WindowListener to detect the activation or deactivation events. Must import
java.awt.event among others

+1 862 207 3288 