private void setup(boolean canCancel) {
		monitorComponent = new TaskMonitorComponent(false, false);
		monitorComponent.getAccessibleContext().setAccessibleName("Monitor");
		activityPanel = new ChompingBitsAnimationPanel();
		activityPanel.getAccessibleContext().setAccessibleName("Activity");

		setCancelEnabled(canCancel);
		setRememberLocation(false);
		setRememberSize(false);
		setTransient(true);

		mainPanel = new JPanel(new BorderLayout());
		mainPanel.getAccessibleContext().setAccessibleName("Task");
		addWorkPanel(mainPanel);

		if (supportsProgress) {
			installProgressMonitor();
		}
		else {
			installActivityDisplay();
		}

		if (canCancel) {
			addCancelButton();
		}

		setHelpLocation(new HelpLocation(ToolConstants.TOOL_HELP_TOPIC, "TaskDialog"));
	}
Constructor

@param centerOnComp component to be centered over when shown, otherwise center over
       parent.  If both centerOnComp is null, then the active window will be used
@param title title for the dialog
@param isModal true if the dialog should be modal
@param canCancel true if the task can be canceled
@param hasProgress true if the dialog should show a progress bar
@param finished the finished latch used by the background thread to notify of completion
Ghidra/Framework/Docking/src/main/java/ghidra/util/task/TaskDialog.java