protected void addButton(JButton button) {
		if (defaultButton == null && buttonPanel.getComponentCount() == 0) {
			// The first button we add will be a suitable default 'default button'.
			setDefaultButton(button);
		}
		buttonPanel.add(button);
	}
Adds a button to the button panel at the bottom of the dialog.
Buttons will be added from left to right.
<p>
Implementation Note: Calling this method will set the given button as the default button
on this dialog when:
<ul>
		<li>
			No button has yet been added, and
		</li>
		<li>
			No default button has been assigned
		</li>
</ul>
To change this behavior, call {@link #setDefaultButton(JButton)} with the desired
default button.

@param button the button
Ghidra/Framework/Docking/src/main/java/docking/DialogComponentProvider.java