line
Customizing a Java applet
line

Though you cannot create Java applets with Homepage Builder, you can modify (customize) the size and movement of existing Java applets. This section describes how to insert and customize a sample Java applet that Homepage Builder offers.

This section contains the following topics:

Related HTML tags <APPLET CODE= CODEBASE= WIDTH= HEIGHT= ></APPLET>
<PARAM NAME= VALUE= >


Vocabulary Vocabulary Java applet

A program written in Java language. By changing its parameters, you can change such things as the background, movement, and text.


Note Note You cannot create Java applets with Homepage Builder. To create them, you need a knowledge of Java language and programming.

You can display Java applets only on Web browsers that support them.



Inserting one of the sample Java applets

To insert one of sample Java applets Homepage Builder offers:

  1. Click the Contents tab.

  2. Select Java Applet from the upper left box (Java Applet is one of the sample materials) to display sample Java applets.

    Contents tab

  3. Select the Java applet you like, drag it, and drop it onto the Web page you are editing.

    The Java applet is inserted into the position where you dropped the file. The Java applet is indicated by the alternative image.

    Inserted Java applet

Tip Tip You cannot run Java apples in the Homepage Builder editor. (In the editor, an alternative image is displayed instead of the actual Java applet.) Applets run only on a Web browser.



Tip Tip A single Java applet is composed of several files. If a Java applet has been inserted as described in this section, a subfolder for the Java applet is automatically created when you save the Web page you are editing, and all the required files are copied into it.

When you upload your files to the provider's server, you must also upload the subfolder for the Java applet and the files in it. However, if your provider does not permit the use of subfolders, move the entire content of the Java applet subfolder to the top folder and erase the CODEBASE attribute of the <APPLET> tag.



Changing the size of a Java applet

To change the size of a Java applet you inserted, click it, and drag one of eight black square marks around it.

Drag like this...
Changing the size of a Java applet
arrow
to change the size to this:
Changing the size of a Java applet is completed



Changing the movement of a Java applet

You can easily change the movement, color, displayed text, or displayed image of a Java applet by changing its parameters. Change them according to your own personal taste.

  1. Click the Java applet using the right mouse button, select Attributes from the pop-up menu to display the Attribute dialog box.

  2. Click the Parameters tab, which has a list of Java applet parameters.

  3. Click one of parameters. The parameter name is displayed in Name, and the parameter value in Value. You can change the value as you like. Type the new value, and click the Replace button.

  4. Click the OK button to save the changes. You cannot check the changes on the Normal pane, but you can on a Web browser.

    You can change this Java applet ...
    Display example before changing parameters
    arrow
    to this.
    Display example after changing parameters



Inserting your own Java applet

To insert your own Java applet, which is not one of sample Java applets provided by Homepage Builder:

  1. Create a subfolder for the Java applet in your site folder.

  2. Copy all the files composing the Java applet to the subfolder you created. Copy the following files, for example:
  3. Select Java applet from the Insert menu to display the Attribute dialog box for a Java applet. Check that Applet is displayed in the Tag list box.

  4. Type the class file name in Code, the Java applet subfolder name in Code Base, the explanation of the Java applet in Alternate Text, and the size of the Java applet in Width and Height.

  5. Click the Parameters tab, which has a list of Java applet parameters.

  6. Enter the parameter name in Name and the corresponding value in Value, and click the Add button. Repeat this step for all the parameters.

  7. Click the OK button to insert the Java applet. The mark Coffee cup is then displayed. (You can view the actual Java applet on a Web browser, not on the Normal tab.