Basic HTML version of Foils prepared 13 July 98

Foil 96 The addItem Method

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

The java.awt.Choice.addItem Method
1 Items are added individually to a Choice: Choice list = new Choice(); list.addItem( "HTML" ); list.addItem( "JavaScript" ); list.addItem( "CGI" ); list.addItem( "Java" ); list.addItem( "VRML" ); list.select(2); // select "CGI"
2 As usual, items are indexed starting with 0

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