contentPane.add(label);
addWindowListener(new WindowAdapter() {
@Override
public void windowOpened (WindowEvent arg0) {
MapManagerWorker worker = new MapManagerWorker(overwrite) {
@Override
protected void done () {
setVisible(false);
super.done();
}
@Override
public void setLabelText (String s) {
label.setText(s);
}
@Override
public void setProgressBarMaximum (int i) {
progressBar.setMaximum(i);
}
@Override
public void setProgressBarValue (int i) {
progressBar.setValue(i);
}
};
worker.execute();
}
});
}