Border b = c.getBorder(); if (b == null || b instanceof UIResource) c.setBorder(UIManager.getBorder(defaultBorderName));
  public static void installBorder(JComponent c, String defaultBorderName)    {    }