catch (NumberFormatException exc) {  System.err.println("couldn't parse: " + val); } }
  public Length(String val)  {    value = val;    int i = value.indexOf("px");    floatValue = 0.0F;    if (i != -1)      {        String sub = value.substring(0, i);        floatValue = Float.parseFloat(sub);      }    else      {        // TODO: Implement other length options.        floatValue = Float.parseFloat(value);      }  }