Basic HTML version of Foils prepared 13 July 98

Foil 14 Parameter Conversion (cont'd)

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


1 But the font style is somewhat tricky: String fontStyleStr = getParameter( "fontStyle" ); fontStyleStr = fontStyleStr.trim(); fontStyleStr = fontStyleStr.toUpperCase(); int fontStyle = 0; if ( fontStyleStr.indexOf("BOLD") > -1 ) fontStyle += Font.BOLD; if ( fontStyleStr.indexOf("ITALIC") > -1 ) fontStyle += Font.ITALIC;

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