public void setDefaultButton(JButton button) {
		defaultButton = button;

		if (isShowing()) {
			// update the button while we are showing
			dialog.getRootPane().setDefaultButton(button);
		}
	}
Sets the button to make "Default" when the dialog is shown.  If no default button is
desired, then pass <code>null</code> as the <code>button</code> value.
@param button the button to make default enabled.
Ghidra/Framework/Docking/src/main/java/docking/DialogComponentProvider.java