return is_def;
JRootPane rp = SwingUtilities.getRootPane(this); boolean isDefault = false; if (rp != null) isDefault = rp.getDefaultButton() == this; return isDefault;
  public boolean isDefaultButton()  {    // Returns whether or not this button is the default button on the    // RootPane.    return is_def;  }