Web Design - Website Creation.

Java Applet

   Applets have the file extension "class".
Example - "sampleapplet.class". Some applets consist of more than just a class file. Other files are often needed for the applet to run successfully, such as JPG or GIF images used in the applet.

   Before embedding an applet on your page you need to upload all the required files to your host server.

   When inserting an applet in your web page you will need to save the applet on your host server as well as the HTML web page that the applet is embedded in. When your page is loaded by any visitor to your site the applet will be loaded and inserted on the page where you had embedded it.

Example Html with embedded Applet code:
Applet example
appletexample-315 (11K) Two HTML tags are relevant according to applets: <Applet> and <Param>
The <Applet> tag embeds the applet in your HTML page.
The <Param> tag is used to enter parameters for the applet.

The following attributes can be set for the <Applet> tag:



The <Param> tag has the general syntax:
Param Name=NameOfParameter Value="ValueOfParameter"

Each applet has different parameters that should be set.
Typical parameters for an applet would be:

  • color used by the applet
  • font and font size to be used on text in the applet
  • name of an image file to be inserted in the applet
A         B         C         D         E         F         G        

H         I         J         K         L         M         N        

O         P         Q         R         S         T         U        

V         W         X         Y         Z


Home   |   Business Directory   |   Festivals & Fairs (USA)