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 ); |