code: private static int[] maximumSizes(Container container,
              List formSpecs,
              List[] componentLists,
              Measure minMeasure,
              Measure prefMeasure,
              Measure defaultMeasure) {
          FormSpec formSpec;
          int size = formSpecs.size();
          int[] result = new int[size];
          for (int i = 0; i < size; i++) {
              formSpec = (FormSpec) formSpecs.get(i);
              result[i] = formSpec.maximumSize(container,
                      componentLists[i],
                      minMeasure,
                      prefMeasure,
                      defaultMeasure);
          }
          return result;
      }
docs: Computes and returns the sizes for the given form specs, component lists and measures for
  minimum, preferred, and default size.
  
  @param container the layout container
  @param formSpecs the column or row specs, resp.
  @param componentLists the components list for each col/row
  @param minMeasure the measure used to determine min sizes
  @param prefMeasure the measure used to determine pre sizes
  @param defaultMeasure the measure used to determine default sizes
  @return the column or row sizes