public static String showInputSingleLineDialog(Component parent, String title, String label,
			String initialValue) {

		return Swing.runNow(() -> {

			InputDialog dialog = new InputDialog(title, label, initialValue, true);

			// Apply similar settings to that of the OptionDialog, for consistency
			dialog.setRememberLocation(false);
			dialog.setRememberSize(false);

			DockingWindowManager.showDialog(parent, dialog);

			if (dialog.isCanceled()) {
				return null;
			}
			return dialog.getValue();
		});
	}
Displays a dialog for the user to enter a string value on a single line.

@param parent the component to parent this dialog to
@param title the title to display on the input dialog
@param label the label to display in front of the text field
@param initialValue an optional value to set in the text field, can be null
@return the string entered OR null if the dialog was canceled.
Ghidra/Framework/Docking/src/main/java/docking/widgets/OptionDialog.java