Changing text field length

Taking the plain java sample… made one minor change, added the following line:
I was expecting the text field to expand… it did not happen. Why not?

From the JavaDoc:

     * Minimum number of characters (in Unicode code points) that the user can
     * enter.
     * @param minLength
     *            the minimum length
    public void setMinLength(int minLength) {

So the minLength property only controls how many characters can be entered in the text field, not how wide it is. If you want to control the width, use setWidth or setMinWidth