Posted By:
Xinhua_Liu
Posted On:
Thursday, September 26, 2002 12:57 AM
Now the situation is: the base one is a JDesktopPane,and above it are many JInternalFrames,within each JInternalFrame there are many Labels.Our purpose is that when mousedragging on the JLabel, we need to response it,for example, to draw a line between a special point in the JLabel and the current position of the mouse.But unfornately, it could catch the dragging action in the JLabel, outside it, I mean the base JDesktopPane, mouse moving action could not been catched,so I could not know the accurate position of the mouse.Remember, I have added mousemotionlistener to both JLabel and JDesktopPane. I just wonder whether I should do something on event dispatching,but I'm not very clear. So, please, Gurus here.Give me your suggestions
More>>
Now the situation is:
the base one is a JDesktopPane,and above it are many JInternalFrames,within each JInternalFrame there are many Labels.Our purpose is that when mousedragging on the JLabel, we need to response it,for example, to draw a line between a special point in the JLabel and the current position of the mouse.But unfornately, it could catch the dragging action in the JLabel, outside it, I mean the base JDesktopPane, mouse moving action could not been catched,so I could not know the accurate position of the mouse.Remember, I have added mousemotionlistener to both JLabel and JDesktopPane. I just wonder whether I should do something on event dispatching,but I'm not very clear.
So, please, Gurus here.Give me your suggestions
<<Less