posted 14 years ago
Hi all!
I need some help with getting 2 MouseListeners working at the same time on 2 different overlapping JPanels.
I have created a sample class that shows what is happening. Perhaps this is "the way that it is", but I need a way around the problem.
I have a background panel and a foreground panel. I need to track the mouse position in the background panel, even when it is over the foreground panel. The problem is that when the mouse is over the foreground panel, the background panel stops "listening".
Is there a way to keep both of the mouse listeners listening?
Thanks,
Steven