Solved

An Applet Implements MouseListener, and Has Int Instance Data X

Question 1

Essay

An applet implements MouseListener, and has int instance data x and y. These variables will be the (X, Y) coordinates of where the mouse is clicked. Every time the mouse is clicked, draw a 40x40 Oval centered around x and y. Write the mouseClicked and paint methods to draw the Oval every time the mouse is clicked.

Correct Answer:

verifed

Verified

Related Questions