Write two programs, such that one displays the mouse position when the mouse button is clicked (see Figure) and the other displays the mouse position when the mouse button is pressed and ceases to display it when the mouse button is released.

(a) Exercise displays the mouse position.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.