In the actionPerformed(...) method, the handler extracts the text from the TextField and displays it on the status line of the applet: public void actionPerformed( ActionEvent e ) { String text = e.getActionCommand(); if ( ! text.equals( "" ) ) { applet.showStatus( "Text: " + text ); } } |