Greetings,
For several weeks I've been trying to fire a mouse event so when I click and drag a JLabel around the screen. I've gotten a work around, but its not exactly solid. After lots of digging through the API I figured out that a mouse event is fired relative to the component which fired it (duh!
. When I was doing label.setLocation( e.getX(), e.getY() ) it was pulling the coordinates off of the JLabel which I was pulling around. Although it worked, kind of, it was very choppy and did not look good at all. I switched the mousemotionlistener to the JFrame which was holding the jlabel and it works, but obviously its only a temp work around, what I would like to do actually click on any JLabel (might have upto 10 in the JFrame at any time) and just move that one JLabel around seemlessly. If anyone has any further suggestions I would greatly appreciate it.
Thanks in advance
Rhoon
For several weeks I've been trying to fire a mouse event so when I click and drag a JLabel around the screen. I've gotten a work around, but its not exactly solid. After lots of digging through the API I figured out that a mouse event is fired relative to the component which fired it (duh!
Thanks in advance
Rhoon