Write a panel class called EyePanel (and any other classes you need, such as event listeners) to implement a panel that draws two eyes that look up, to the center, or down depending on whether the mouse cursor is above, inside, or below the eyes. The following three screenshots show the eyes in each of the three positions:
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.