input2 = new TextField( 10 ); input2.addActionListener( this ); add( input2 ); // put input2 on applet