(int progress)
| 52 | } |
| 53 | |
| 54 | public void updateProgress(int progress) |
| 55 | { |
| 56 | if (SwingUtilities.isEventDispatchThread()) { |
| 57 | this.progressBar.setValue(progress); |
| 58 | } else { |
| 59 | this.deferredProgress = progress; |
| 60 | SwingUtilities.invokeLater(new Runnable() { |
| 61 | public void run() { |
| 62 | ProgressDialog.this.progressBar.setValue(ProgressDialog.this.deferredProgress); |
| 63 | } |
| 64 | }); |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 |