A TextField is a box in which the user enters a single line of text: TextField tf = new TextField(20); |
The integer argument to the TextField constructor above is the width of the field (in characters) |
A TextField object generates an ActionEvent when the user presses return |