Quantcast
Channel: S. Nageswara Rao, Corporate Trainer – Way2Java
Viewing all articles
Browse latest Browse all 505

Finding x and y Coordinates of Mouse Position in Java

$
0
0
We have seen earlier to handle mouse events separately with MouseListener and MouseMotionListener and also both listeners in a single program. Here also, both listeners are implemented but the task is to find the x and y coordinates where mouse action take place on the frame. To find, the MouseEvent class defines two methods getX() […]

Viewing all articles
Browse latest Browse all 505

Trending Articles