if (defaultButton == newButton) return;
if (defaultButton != newButton && (newButton == null || newButton.isDefaultCapable())) {
  public void setDefaultButton(JButton newButton)  {    if (defaultButton == newButton)      return;        JButton oldButton = defaultButton;    defaultButton = newButton;    firePropertyChange("defaultButton", oldButton, newButton);  }