If I apply a mouse listener to a parent Component:
And then, a childComponent broadcasts a mouse event towards their parent, How does I know what child fires such event?
(because the parentComponent owns several childComponents)
But the callback is hosted in the parentComponent, the only parameter passed to the parent through the callback is:
(among other events.)
I know that MouseEvent class has two members: eventComponent and originalComponent. I’ve done some checks and it worked.
So what is the convenient one for this purpose?