public void setFocusComponent(Component focusComponent) {
		this.focusComponent = focusComponent;

		if (focusComponent instanceof JButton && defaultButton == null) {
			setDefaultButton((JButton) focusComponent);
		}
	}
Sets the component that should be given focus when the dialog is activated.
<p>
Implementation Note:  If the given component is a JButton, then that component will be
made the default button.

@param focusComponent the component that should receive default focus.
@see #setFocusComponent(Component)
Ghidra/Framework/Docking/src/main/java/docking/DialogComponentProvider.java