Hi,
I've implemented a simple mouse listener where the background color changes whenever the mouse enters the component (a JPanel), and it reverts back whenever the mouse leaves. This has some problems:
- Sometimes the mouse moves so quick that the mouseExit event is not fired
- If my component has childs, when the mouse moves to the childs it triggers the mouseExit
- If I move the mouse over to the childs quickly, the mouseEnter event is not fired
I'm guessing this is an easy one for Swing veterans. Any suggestions on how to fix this? I'd love not to use timers and such...