The code TextField t = new TextField("Default Input", 20); creates a new TextField object and initializes it by placing the "Default Input" string within it. The second parameter of the constructor sets the width of the TextField. In order for the TextField to be visible, however, add(t); is necessary to add it to a container (e.g., a panel).