}
};
// Start the CarBuilder worker and then launch the progress monitor (which is modal and would block the UI until
// either the progress reaches 100% or the monitor is canceled)
worker.start();
monitor.showDialog();
// there is no interesting value to get from the worker, but a call to get() effectively does a join
// on the worker thread
worker.get();
}