Java Reference
In-Depth Information
The following applet demonstrates showStatus( ) :
Sample output from this program is shown here:
Passing Parameters to Applets
You can pass parameters to your applet. To do so, use the PARAM attribute of the APPLET
tag, specifying the parameter's name and value. To retrieve a parameter, use the getPara-
meter( ) method, defined by Applet . Its general form is shown here:
String getParameter(String paramName )
Here, paramName is the name of the parameter. It returns the value of the specified para-
meter in the form of a String object. Thus, for numeric and boolean values, you will need
to convert their string representations into their internal formats. If the specified parameter
cannot be found, null is returned. Therefore, be sure to confirm that the value returned by
Search WWH ::




Custom Search