To fetch the current string that appears in a text field, possibly after you edit that field and press the Enter key, you use the getText method:
getText
field1.getText()