Increasing the size of the Text field

java, swt

Solution

For each field, if your general layout manager is GridLayout, your textbox layout data will be GridData. Pass width and height into the GridData constructor and set it to the textbox (textbox.setLayoutData()), along with the properties about how you want the layout manager to manipulate the field.

Problem

I am using `org.eclipse.swt.widgets.Text`'s type of Text field. I want to increase the length of the field. How would I do this?

Original source