Hi, is there a better way to get the cursor position of mouse pointer inside a JPanel.
I'm thinking of using...
Then the difference in X and Y values should be the cursor position inside of the Component (assuming mouse is actually inside the component)
But will this still work for an
applet which lies inside a browser?
It would take me quite a while to set the applet up, so I thought I would just ask first before I try experimenting.
Thanks