Originally posted by R.Joe: I have a JInternalFrame having JButton,JTable and JLabel I have added the MouseMotionListener to the JInternalFrame mousemoved event fires on JInternalFrame and JLabel but not in JButton or JTable
Is it posible , we can add the MouseMotionListener to the container and it get automatically added to their components.
posted 9 years ago
By default, a container's MouseMotionListener will receive (and effectively consume) MouseMotionEvents, such that its contained components won't receive them. You could do something like in your frame:
I didn't try that out, but I think it would work.
Dave Taubler<br />Specializing in <a href="http://taubler.com/articles/" target="_blank" rel="nofollow">Java and Web Development</a>