Operation Manual
Hyperlinks and Interactivity | 161
Again, you don't need to understand the underlying code, but it's essential to
make sense of any "Read Me" documentation that comes with the applet.
When using WebPlus to embed an applet, you must list its component files as
well as any necessary parameters (as described in the applet's documentation)
that specify exactly how the applet should run.
When adding a Java applet in WebPlus, you have the option of embedding its
files in your project, as opposed to keeping them separate. Although
embedding any file adds to the size of the project, it is the default option
because you'll no longer have to worry about juggling separate files or the
chance of accidentally deleting one of them. When you publish your site,
WebPlus takes care of exporting and copying both embedded and non-
embedded files.
Bear in mind that Java applets won't execute instantly in a visitor's browser.
As with image or media files, it will take time to download the applet files to
the user's computer before anything "happens" on screen. Take the combined
applet file sizes into account when figuring the time it will take the Web page
to display.
WebPlus inserts a marker into your site at the place where the applet will
appear on your Web page. You can't actually see the applet running until you
preview the exported site. The marker's dimensions probably won't correspond
exactly to those of the applet when it's running, so plan your page layout
accordingly. Also, bear in mind that a Java applet's user interface may look
slightly different on each browser that displays it, even on the same operating
system. The more preview tests you can run, for example using both Netscape
Navigator and Microsoft Internet Explorer, the better.
To add a Java applet to a page:
1. Click the
Insert Java Applet button on the Web Objects toolbar’s
Media flyout.
2. In the dialog, click Browse... to locate and select a specific Applet Class
File or archive file (.JAR or .ZIP). If the latter is specified, you have to
select which .class file should be run from within the archive file.
3. Click the upper Add.. button to locate any other files required by the
applet. You can hold down the Ctrl or Shift key to select multiple files in
the dialog. To delete a file once you've added it to your list, click the file
name and then click the Delete button.
4. If you do not
wish to embed the files in your project, uncheck the
"Embed" option.










