title: Bug with Thread.pause
body: <p>This is my code:</p>
  
  <pre><code>private void jButton5MouseClicked(java.awt.event.MouseEvent evt) {                                      
      this.jButton5.setText("VietNam");
      try {
          Thread.sleep(10000);
      } catch (InterruptedException ex) {
          Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
          }
      this.jButton5.setText("Ha Noi");
  }
  </code></pre>
  
  <p>I want the Button display "Viet Nam", and after one minute it'll change to "Ha Noi".
  But with my code, my Button displayed nothing and after 1 minute it displayed "Ha Noi", without "Viet Nam" appeared for a single second.</p>
  
  <p>How can I fix that? I don't want to use swing.Timer because it can't pause the system completely. If there is a way to fix it, please tell me.</p>
  
  <p>Thanks you guys a lot.</p>