# Run Tab for Applet Project

The Run tab contains the following attributes for running an applet project. If you change information 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 type the URL of the HTML file in the text box. All other fields in the tab will be dimmed. Java WorkShop will run the file you specified when you click on the Project Tester control.

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

Main Class
  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, Java 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 box and a value in the Value box. Then click the Add button. The parameter name and value appear in the list to the left of the Name box. If you make a mistake, you can delete a parameter by selecting it in the Parameters list and clicking the Delete button. Click Delete All to delete all parameters.

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

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

See also:

  Editing Project Attributes