See How to write a Mouse Listener, in particular scroll down to the MouseEvent class description and its location getter functions, such as getPoint()