I'm new to Java (after years of Visual Basic and VBA). So right now I'm going through a very steep learning curve.
I'm trying to figure out (while I bang my head on the keyboard) how to do the following in SWING:
- Show mouse coordinates (x, y) in a SWING Label.
(also show coordinates if outside the SWING Frame).
Does anybody have some code for this? I've already got Sun's Mouse-Motion Listener code, but I want it to run on it on a Form, as well as showing the coordinates if the mouse is outside of the frame.