Basic HTML version of Foils prepared 13 July 98

Foil 12 Parameter Conversion

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


Since HTML parameters are passed to the applet as strings, the text to be drawn and the font name may be used straightaway
The font size must be converted, however, since it is an integer: String fontSizeStr = getParameter( "fontSize" ) ; int fontSize = Integer.parseInt( fontSizeStr );



© 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