
Chapter 13
318
Inserting a Java applet
Java is a programming language that allows the development of lightweight
applications (
applets
) that can be embedded in Web pages.
After you create a Java applet, you can insert that applet into an HTML document
using Dreamweaver. Dreamweaver uses the
applet
tag to mark the reference to
the applet file.
To insert a Java applet:
1
In the Document window, place the insertion point where you want to
insert the applet.
2
Click the Applet button in the Objects panel.
3
In the dialog box that appears, select a file containing a Java applet.
Setting Java applet properties
After 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” on page 271.
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.
Summary of Contents for 38028779 - Macromedia Dreamweaver - Mac
Page 1: ...macromedia Using Dreamweaver...
Page 148: ...Chapter 4 148...
Page 296: ...Chapter 12 296...
Page 472: ...Chapter 18 472...
Page 512: ...Chapter 21 512...
Page 562: ...Appendix 562...