Monday, March 25, 2002 07:17 AM
The only mouse events that seem to be generated when the mouse is outside the bounds of a component are 'mouse dragging' events.
According the the MouseMotionListener API: 'Mouse drag events will continue to be delivered to the component where the first originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).'
To convert the mouse co-ordinate into a screen co-ordinate you can then use SwingUtilities.convertPointToScreen().
I cannot find any other way do it using standard java classes. Monitoring events on the EventQueue show that only events that are within the bounds of the frame are ever posted (unless they are dragging events).
Perhaps there is another way using sun.* classes...