Since Text is a control, it inherits a method: Text.setSize(width, height) . This allows you to set the actual size of the Text field. Change the width to be something big. You can also keep the height the same by doing something like
textField.setSize(width, textField.getSize().y)
source share