Solved

An Applet Implements MouseMotionListener and Is 600x600 in Size

Question 39

Essay

An Applet implements MouseMotionListener and is 600x600 in size. Write a mouseMoved method so that if the mouse is moved into the upper left hand quadrant of the Applet, the entire applet turns blue, if the mouse is moved into the upper right hand quadrant of the Applet, the entire applet turns yellow, if the mouse is moved into the lower left hand quadrant of the Applet, the entire applet turns green, and if the mouse is moved into the lower right hand quadrant of the Applet, the entire applet turns red.

Correct Answer:

verifed

Verified

public void mouseMoved(MouseEvent me)
{
...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions