title: Java Swing: change background color on mouse over
body: <p>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:</p>
  
  <ul>
  <li>Sometimes the mouse moves so quick that the <em>mouseExit</em> event is not fired</li>
  <li>If my component has childs, when the mouse moves to the childs it triggers the <em>mouseExit</em></li>
  <li>If I move the mouse over to the childs quickly, the <em>mouseEnter</em> event is not fired</li>
  </ul>
  
  <p>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...</p>