Prova con questo metodo:
codice:
 
public void setColumns(int columns)Sets the number of columns in this TextField, and then invalidate the layout. 

Parameters:
columns - the number of columns >= 0 
Throws: 
IllegalArgumentException - if columns is less than 0