Applet Parameters
The APPLET element in HTML can include parameter definitions, e.g.:
<APPLET CODE=“FileDisplay.class”
WIDTH=300 HEIGHT=450>
<PARAM NAME=“file” VALUE = “infile”>
<PARAM NAME=“port” VALUE = “4965”>
</APPLET>
Inside the applet, these parameters are read by getParameter(), e.g.:
String file = getParameter(“file”) ;
You are not allowed to call this method in the applet constructor. This is one reason for doing initialization in init().
Remember to convert the HTML again if you modify the applet element!