>>503
For similar behavior use a JProgressBar with a JOptionPane, or JDialog.