Basic HTML version of Foils prepared 13 July 98

Foil 21 Color Parameters

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


In the HTML document: <APPLET ...> <PARAM NAME="bgColor" VALUE="00ffff"> </APPLET>
In the Java applet: String colorStr; int colorInt; colorStr = getParameter( "bgColor" ); colorInt = Integer.parseInt( colorStr, 16 ); setBackground( new Color( colorInt ) );



© 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