1 |
The applet tag can be followed by parameters:
-
<applet . . . >
-
<param name=attributename1 value="attributevalue1" >
-
.......
-
<param name=attributenameN value="attributevalueN" >
-
</applet>
|
2 |
The Java program accesses this information by
-
String attribute;
-
attribute = getParameter("attributename1");
-
if( attribute == null )
-
attribute = yourdefaultvalue;
-
// null is Java way of saying unset
|
3 |
Typically this processing would be in init() method of Applet
|