code: public static String getSizeVariant(JComponent c) {
          String sizeVariant = System.getProperty("JComponent.sizeVariant");
          String componentSizeVariant = (String)c.getClientProperty("JComponent.sizeVariant");
          if (componentSizeVariant != null) {
              sizeVariant  = componentSizeVariant;
          }
          return sizeVariant;
      }
docs: Gets the size variant that is applicable for the given component.
  @param c
  @return