Get the mouse position in plain old AWT/Swing

I feel kind of silly asking this question but I have searched Google et al and have not found a solution. How do I get the current position of the mouse in the window/component? There was mention of a mouseinfo class but that has since been deprecated.

I have a grid and I would like the square that contains the cursor position to be highlighted. I would like to do this without the user having to click.

I feel like this is a very basic question, but any help would be appreciated.

I just saw it right after I posted my question. Well at least I was correct about something, it was basic.