There is a huge difference between disabling the UI elements (or making them unavailable by covering them up with a glass pane and a progress monitor) and futzing up your EDT with a long running task.
For instance, you won't be able to update the progress monitor, since this will usually require an automatic repaint submitted to the EDT that it won't be able to process until the task ends.