How to get the position of current mouse pointer in Java

I am trying to run an application in Java for a small project. As a start, i have to identify the position of the mouse pointer. how to detect the X location and Y location (X,Y) of the mouse pointer in Java ? This project will be a sub project later for a major project on which my team is working on. The user need not move the mouse, still the location of the mouse has to be identified and sent as a parameter to say a function Current_mouse_loc(). How to get the mouse pointer position? Which is the call back responsible for this? Thank you for replying.
