private static int checkStyle(int style) {
    if (style == 0)
      style = STYLE_CLASSIC;
    if (style != STYLE_CLASSIC && style != STYLE_MODERN)
      throw new IllegalArgumentException(PROPERTY_NAME_STYLE
          + ": unrecognized style");
    return style;
  }
private static int checkStyle(int style)