Inserting Media > Inserting a Java applet > Setting Java applet properties

 

Setting Java applet properties

After inserting a Java applet (see Inserting a Java applet), use the Property inspector to set parameters. To view the following properties in the Property inspector, select a Java applet.

The Property inspector initially displays the most commonly used properties. Click the expander arrow in the lower right corner to see all properties.

Name specifies a name to identify the applet for scripting. Enter a name in the unlabeled field on the far left side of the Property inspector.

W and H specify the width and height of the applet in pixels. You can also specify the following units: pc (picas), pt (points), in (inches), mm (millimeters), cm (centimeters), or % (percentage of the parent object's width or height). The abbreviations must follow the value without a space: for example, 3mm.

Code specifies the file containing the applet's Java code. Click the folder icon to browse to a file, or enter a file name.

Base identifies the folder containing the selected applet. When you choose an applet, this field is filled automatically.

Align determines how the object is aligned on the page. For a description of each option, see Aligning elements.

Alt specifies alternative content (usually an image) to be displayed if the user's browser doesn't support Java applets or has Java disabled. If you enter text, Dreamweaver renders the text with the alt attribute of the applet tag. If you choose an image, Dreamweaver inserts an img tag between the opening and closing applet tags.

Note: To specify alternative content that is viewable in both Netscape Navigator (with Java disabled) and Lynx (a text-based browser), select an image and then manually add an alt attribute to the img tag in the Code inspector.

V Space and H Space specify the amount of white space in pixels above, below, and on both sides of the applet.

Parameters opens a dialog box for entering additional parameters to pass to the applet. See Using parameters. Many applets respond to special parameters.