Basic HTML version of Foils prepared 13 July 98

Foil 75 Handling TextField Events

From Java Academy II:Intermediate Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo


1 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 ); } }

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998