Child-component independent mouseEnter/mouseExit?

For a hovering-mechanism, i need to know if the mouse is currently over a component, even if this mouse is currently over a containing component (with also has interaction, so hitTest is no option).

Does anybody has an idea how to quickly solve that? (without modification of the child components)

bump

You can do this with a MouseListener.. They can be set to listen to all events in all subcomponents of the one you attach it to.

So i have to attach it on every sub component?

No, just pass true as the second parameter to addMouseListener, that will automatically recieve events from all nested components. Then just check the mouse position relative to the parent to see if the mouse is still inside or not.

No - see Component::addMouseListener

thanks :) 

its just easier, mouseEnter/mouseExit will do the job