public final int getPrefColumnCount ()

taken from field

The preferred number of text columns. This is used for calculating the TextField's preferred width.