public void setColumns(String colstring) { if (colstring != null) { StringTokenizer tokens = new StringTokenizer(colstring, ","); String[] newcols = new String[tokens.countTokens()]; int i=0; while (tokens.hasMoreTokens()) newcols[i++] = tokens.nextToken().trim(); setColumns(newcols);
public void setColumns(String[] c) { StringBuffer buffer = new StringBuffer(c[0]); for (int i=1; i < c.length; i++) { buffer.append(","); buffer.append(c[i]);
    public void setColumns(String colstring) {	if (colstring != null) {	    StringTokenizer tokens = new StringTokenizer(colstring, ",");	    String[] newcols = new String[tokens.countTokens()];	    int i=0;	    while (tokens.hasMoreTokens())		newcols[i++] = tokens.nextToken().trim();	    setColumns(newcols);	}    }