throw new IllegalArgumentException("Invalid axis parameter");
span = super.getMaximumSpan(axis);
  public float getMaximumSpan(int axis)  {    // FIXME: The specs say that for some components the maximum span == the    // preferred span of the component. This should be figured out and    // implemented accordingly.    float span;    if (axis == X_AXIS)      span = getComponent().getMaximumSize().width;    else if (axis == Y_AXIS)      span = getComponent().getMaximumSize().height;    else      throw new IllegalArgumentException("Invalid axis parameter");    return span;  }