Getting an Applet Parameter - Java Applet

Java examples for Applet:Applet Creation

Description

Getting an Applet Parameter


<applet code=AppletClassName width=100 height=100>
    <param name=p1 value="some text">
    <param name=p2 value="some more text">
</applet>

String parameterName = "p1";
String value = applet.getParameter(parameterName);

parameterName = "p2";
value = applet.getParameter(parameterName);

Related Tutorials