Basic HTML version of Foils prepared 13 July 98

Foil 72 Text Fields

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

Text Fields for Foil 72
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



© 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