According to the API spec, Dimension.toString() returns "a string representation of this dimension."
A specific description of what a string representation should look like is necessary to help enforce compatibility. eg, "java.awt.Dimension[width=" + the value of width + ",height=" + the value of height + "]"