decorative banner

Setting up Java applets


    GoLive lets you insert Java applets on a layout grid or in the flow of HTML code, so you can add animation or other advanced features to your page. In Mac OS, you can play Java applets in Layout and Preview modes from within GoLive; you don't need to start a browser to preview the applets. In Windows, you can play Java applets in Preview mode only.

To set up a Java applet:

  1. Drag the Java Applet icon from the Basic tab Basic set button in the Objects palette to the Layout Editor, or double-click the icon in the Objects palette.
  2. In the Basic tab of the Java Applet Inspector, specify an applet file for the link destination.
  3. The name of the .class file--that is, the file containing the applet code--appears in the Code text box. The name of the applet appears in the Java applet icon in the document window.

    Note: With some Java applet generator programs, the .class extension is not added correctly to the CODE attribute. These applets work in the browser, but they won't display in GoLive.

  4. Name the applet by typing a unique name in the Name text box. The name cannot be used by any other object on your page.
  5. Resize the applet by dragging the resize handles, or type Width and Height values in the Java Applet Inspector. (The values can be pixels or percentages.)
  6. To align an applet with surrounding text when you are not using a layout grid, use the Hspace and Vspace text boxes and the Align pop-up menu.

Related Subtopics: