I’m stuck with the following.
I’m programming a game and I need to get the mouse pointer location inside the JFrame, I don’t need to get the pointer location on the screen, but just in the JFrame. When you use the MouseClick event you could get the position in the frame while the mouse button is pressed, but I want to get it’s location when no button is pressed.
I hope you understood my question.
I’m stuck with the following. I’m programming a game and I need to get
Share
Sounds like you need a MouseMotionListener.
The MouseEvent contains the current mouse position.