code: public void setWidths(int relativeWidths[]) throws DocumentException {
          float tb[] = new float[relativeWidths.length];
          for (int k = 0; k < relativeWidths.length; ++k)
              tb[k] = relativeWidths[k];
          setWidths(tb);
      }
docs: Sets the relative widths of the table.
  
  @param relativeWidths the relative widths of the table.
  @throws DocumentException if the number of widths is different than the number
  of columns