title: jLabel slideshow when a mouse enters a button
body: <p>I can't get this to work:</p>
  
  <pre><code>public void ru() throws InterruptedException {
      jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/adv/room.jpg")));
      setVisible(true);
      Thread.sleep(400);
      jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/adv/ROOMS.jpg")));
      setVisible(true);
      Thread.sleep(400);
      jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/adv/background.jpg")));
      setVisible(true);
  }
  
  private void BtnRoomsMouseEntered(java.awt.event.MouseEvent evt) {
      try {
          ru();
      } catch (InterruptedException ex) {
      }
  }               
  </code></pre>
  
  <p>Any solutions?
  I want a jLabel to show a slide show when a mouse enters a certain button and stays like that as long as the mouse is still in a button. If the mouse happens to exit the button, the jlabel will return to a null state. (no more anything.) Is that possible? Please help. I also tried using <code>for</code> statement but no good. I'm using netbeans by the way.</p>