Big Picture:
Parameters to applets free you from recompilation and make your applets more flexible.
Howto:
<PARAM>
tags:
<PARAM NAME="lambda" VALUE=".5">
init()
of Applet
with getParameter()
:
public class myApplet extends java.applet.Applet { ... public void init() { ... String l = getParameter("lambda"); double lambda = Double.valueOf(l).doubleValue(); // or, equivalently, double Lambda = Double.valueOf(getParameter("lambda")).doubleValue(); ... } }