title: Update jLabel on button click
body: <pre><code> private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {  
      jLabel6.setText("Please wait");
      Cursor hourglassCursor = new Cursor(Cursor.WAIT_CURSOR);
      setCursor(hourglassCursor);
      //Program code
      Cursor normalCursor = new Cursor(Cursor.DEFAULT_CURSOR);
      setCursor(normalCursor);
      jLabel6.setText("");
   }
  </code></pre>
  
  <p>I have this under <code>actionPerformed</code> method. I have couple of updates to the <code>jLabel</code>. The first <code>jLabel</code> text update ("Please wait") isn't shown on the screen on button click. After all the process is done <code>jLabel</code> is set to an empty string.</p>