Basic HTML version of Foils prepared 13 July 98

Foil 62 Labels

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

Labels for Foil 62
The simplest component is a Label object
Adding a label to a GUI is like drawing a string--the only difference is that labels generate events (which we'll have more to say about later)
To add a label to an applet, type: add( new Label( "This is a label!" ) );
It's that easy!



© 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