Run Tab for Applet Project

The Run tab contains the following attributes for running an applet project. If you change a field in this tab, click the Apply button to enter the changes before moving to another tab.

Existing Run Page URL
Radio buttons that indicate whether or not a run page (HTML file) exists for the applet. If a run page exists, select Yes and enter the URL of the HTML file in the text field. All other fields in the tab will be disabled. The WorkShop will run the file you specified when you click on the Project Tester control.

If no run page exists, the WorkShop creates the file projectnametmp.html in your project directory. The WorkShop generates this file based on the attributes and parameters you specify in the Run tab.

Main Class File
The .class file in which the init method is defined.

Codebase
The base URL or file name of the applet. The applet code is relative to this URL or file name. If you do not specify this attribute, then the WorkShop uses the URL or file name of the document in which the applet is specified.

Width
Initial width, in pixels, needed to display the applet.

Height
Initial height, in pixels, needed to display the applet.

Horizontal Space
Number of pixels on each side of the applet.

Vertical Space
Number of pixels above and below the applet.

Instance Name
Name for the applet instance. This name makes it possible for applets running on the same page to communicate with one another.

Alignment
The alignment of the applet on the page. Possible values are Top, Bottom, Middle, Left, Right, TextTop, Absmiddle, Baseline, and Absbottom.

Parameters
Parameters to be passed to the applet. Parameters are specified by name=value. To create a parameter, enter its name in the Name field and a value in the Value field. Then click the Add button. The parameter name and value appear in the list to the left of the Name field. If you make a mistake, you can delete a parameter by selecting it in the Parameters list and clicking the Delete button. Or, click Delete All to delete all parameters.

Alternate Text
Alternate text to be displayed by Web browsers that understand the <applet> tag but cannot run an applet.

Alternate HTML
Alternate HTML code to be displayed by browsers that do not recognize the <applet> tag.


See also:

Editing Project Attributes