It seems that it doesn’t work. Just add a TextEditor anywhere and try it, always is false :S
The text editor uses subcomponents, so the mouse isn’t over the text editor itself, it’s over one of its children.
Thanks, I’ll make a workaround then.
Try using this function:
void Component::addMouseListener (MouseListener* newListener,
bool wantsEventsForAllNestedChildComponents);
with wantsEventsForAllNestedChildComponents = true.
Uhmm that function is very interesting, thanks for the tip!! 
