@Override
	protected void okCallback() {

		Runnable doExpand = () -> {
			if (model.execute()) {
				close();
			}
			else {
				setStatusText(model.getMessage());
				setOkEnabled(false);
			}
			rootPanel.setCursor(Cursor.getDefaultCursor());
		};

		rootPanel.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
		SwingUtilities.invokeLater(doExpand);
	}
@see ghidra.util.bean.GhidraDialog#okCallback()
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/memory/ExpandBlockDialog.java