public static boolean isDefaultButton(JComponent c) {
    return c instanceof JButton &&
           (((JButton)c).isDefaultButton() || ComponentUtil.getClientProperty(c, DEFAULT_STYLE_KEY) == Boolean.TRUE);
  }
public static boolean isDefaultButton(JComponent c)