tmpString = tmpString + "\n" + tmpRow;
tmpString = tmpString + tmpRow;
    public static String wordWrap(String s, int rowLength) {        Vector tmpVector = new Vector();        String tmpString = new String();        String tmpToken = new String();        String tmpRow = new String();        StringTokenizer stringTokenizer = new StringTokenizer(s, " ");        while (stringTokenizer.hasMoreTokens()) {            tmpVector.addElement(stringTokenizer.nextElement());        }        while (!tmpVector.isEmpty()) {            tmpToken = (String)tmpVector.firstElement();            tmpVector.removeElementAt(0);            if (tmpRow.length() + tmpToken.length() + 1 <= rowLength) {                tmpRow = tmpRow + " " + tmpToken;            }            else {                tmpString = tmpString + "\n" + tmpRow;                tmpRow = tmpToken;            }        }        tmpString = tmpString + "\n" + tmpRow;        return tmpString;    }