You are here: Test Case Description for applets within <applet> tag > Test Case #8 for applets within <applet>: param
Applets: APPLET (param)
This test case tests the <applet> tag with its optional <param> tag which provides a method for applets to get input from the HTML file containing an <applet> tag through the use of applet parameters. In the HTML file that contains the embedded applet, each parameter is indicated by using the <param> tag with its two attributes name and value. The <param> tag goes inside the opening and closing <applet> tag.
Test Instructions
- Verify that the samples display correctly for the following test case.
- Verify that the java applet is maintained when you minimize/maximize the screen.
- Verify that the java applet is maintained when you re-size left & right the screen.
- Verify that the java applet is maintained when you re-size top & bottom the screen.
- Verify re-draw takes place correctly after maximizing the screen.
- Verify reload works.
Sample 1. "Jitter Text" applet with a set of parameters values:
<applet codebase="." code="JitterText.class" width="400" height="80"> <param name="BGCOLOR" value="000000"> <param name=TEXTCOLOR value="FF0000"> <param name="TEXT" value="JitterText!"> <param name=SPEED value="250"> <param name="RANDOMCOLOR" value="1"> </applet>
Sample 2. "Jitter Text" applet with a different set of parameters values:
<applet codebase="." code="JitterText.class" width="450" height="50"> <param name="BGCOLOR" value="000000"> <param name="TEXTCOLOR" value="FF0000"> <param name="TEXT" value="Welcome to Dogbert!"> <param name="SPEED" value="300"> </applet>
Sample 3. "Jitter Text" applet with no parameters values:
<applet codebase="." code="JitterText.class" width="450" height="50"></applet>