public static int showOptionDialogWithCancelAsDefaultButton(Component parent, String title,
			String message, String option1, int messageType) {

		String defaultButton = option1.equals("Yes") ? "No" : "Cancel";

		return Swing.runNow(() -> {
			OptionDialog info =
				new OptionDialog(title, message, option1, messageType, null, defaultButton);
			return info.show(parent);
		});
	}
Static helper method to easily display an single-option dialog.  The dialog
will remain until the user presses the Option1 button or the Cancel button.
<p>
The dialog shown by this method will have the cancel button set as the default button so
that an Enter key press will trigger a cancel action.

@param parent    The parent component of this dialog. If the given component is
a frame or dialog, then the component will be used to parent the option dialog.
Otherwise, the parent frame or dialog will be found by traversing up the given
component's parent hierarchy.  Also, null can be used to not parent the dialog at all,
but this promotes poor dialog behavior
@param title The String to be placed in the dialogs title area.
@param message The information message to be displayed in the dialog.
@param option1 The text to place on the option button.
@param messageType used to specify a default icon, can be ERROR_MESSAGE,
		INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE)
@return The options selected by the user. 1 if the option button is pressed
 or 0 if the operation is cancelled.
Ghidra/Framework/Docking/src/main/java/docking/widgets/OptionDialog.java