}
protected void initGui() {
GuiUtils.invokeLater(new Runnable() {
public void run() {
progressDialog = new ProgressDialog();
progressDialog.setVisible(true);
progressDialog.setProgressbarIndeterminate(indeterminate);
if (!indeterminate) {
progressDialog.setProgressbarMax(max);