public void startCountdown(){ for ( i = 5; i > 0; i-- ) { System.out.println( i ); SwingUtilities.invokeLater(new Runnable() { //Note 1 public void run() { jLabel1.setText(Integer.toString(i)); } }); try { Thread.sleep(1000); } catch (InterruptedException e) { throw new RuntimeException(e); } }// end for loop }