code: public void copyValues(TextBox src)
      {
          super.copyValues(src);
          text = new String(src.text);
          ignoreinitialws = false; //only the first box should ignore
          collapsews = src.collapsews;
          splitws = src.splitws;
          linews = src.linews;
          firstLineLength = src.firstLineLength;
          lastLineLength = src.lastLineLength;
          longestLineLength = src.longestLineLength;
          containsLineBreak = src.containsLineBreak;
          transform = src.transform;
          wordSpacing = src.wordSpacing;
      }
docs: Copy all the values from another text box.
  @param src the source text box