public static int showOptionDialog(Component parent, String title, String message,
			String option1, Icon icon) {

		return Swing.runNow(() -> {
			OptionDialog info = new OptionDialog(title, message, option1, PLAIN_MESSAGE, icon);
			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.

@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 icon allows the user to specify the icon to be used.  If non-null,
    this will override the messageType.
@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