title: Waiting between event listeners java
body: <p>My problem:</p>
  
  <p>I've got two events listeners attached to a JLabel and a variable A</p>
  
  <pre><code>boolean A = false;
  public void mouseEntered(MouseEvent evt) { ... }
  public void mouseExited(MouseEvent evt) { ... }
  </code></pre>
  
  <p>What I would like to do is the following: when mouseExited is triggered wait during X milliseconds for catching some changes (if happened) in the A variable due to some code into the mouseEntered event listener.</p>
  
  <p>I already tried with Timer but doesn't work --> I can't catch the new value of variable A during the wait period. I can only catch it after Timer is out.</p>
  
  <p>Any ideas to implement this?</p>