I’ve got a window that is transparent that will overlay a main window at times. I need to have that transparent window to ignore any mouse events on that window. That way if this window covers objects below it they will respond properly to mouse events.
I’ve tried to remove the mouse listeners from the root container, but it appears that they don’t reside there.
window = event.source
window.setOpaque(0)
rootContainer = window.rootContainer
mls = rootContainer.getMouseListeners()
for m in mls:
rootContainer.removeMouseListener(m)
If I check the length of mls it is 0.
So where do the mouse events reside? And how do I get there to remove them? Or am I going about this entirely the wrong way?