Catching mouse events for non front component

gui

#1

Hello,
I have two sibling components that have the same bounds (position and size), so one of them is always behind the second one. I want that the component behind can also catch the mouse events that occur. I have try to override the mouseUp method, but it doesn’t work. Anyone an idea how to achieve that?
Thanks.


#2

Use Component::addMouseListener()


#3

Thanks.