The Insert Applet dialog box opens.
2. From the Select File dialog box, enter the path to your class file in the File Name text box or click
the Browse button to locate the file. An Applet object placeholder appears in the Document window.
In the Applet Property inspector (see Figure 6-27), the selected source file appears in the
Code text box, and the folder appears in the Base text box.
FIGURE 6-27
Use the Insert Applet button to insert a Java Applet object and display the Applet Property
inspector.
The path to your Java class files cannot be expressed absolutely; it must be given as an address
relative to the Web page that is calling it.
3. Enter the height and width of the Applet object in the H and W text boxes, respectively. You can
also resize the Applet object by clicking and dragging any of its three sizing handles.
4. You can enter any of the usual basic attributes, such as a name for the object, as well as values for
Align, V, and/or H Space in the appropriate text boxes in the Property inspector.
5. If you want, enter the online directory where the applet code can be found in the Base text box. If
none is specified, the document??™s URL is assumed to be this attribute, known as the codebase.
6. To display an alternative image if the Java applet is unable to run (typically, because the user??™s
browser does not support Java or the user has disabled Java), enter the path to the image in the
Alt field.
Pages:
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445