Additional materials for Java Programming

  1. The Applet Tag

The Applet Tag

The applet tag has a number of options:
<APPLET CODE="applet.class" 
  WIDTH=appletwidth in pixels
  HEIGHT=appletheight in pixels
  ALIGN=alignment
  ALT="Appears if Java disabled " 
  NAME="appletname" 
  CODEBASE="URL to classes"
  ARCHIVE="additional classes contained in jar or zip files">

</APPLET>
Example: The following example will run the applet TimeTest.class from the URL "/%7Erob/class/java/notes/misc/" with additional classes found in /javaclasses/jhtp2.jar
<APPLET CODE="TimeTest.class" 
  WIDTH="250" HEIGHT="100" 
  ALT="Need Java Here" 
  NAME="Time Test"   
  CODEBASE=
    "/%7Erob/class/java/notes/misc/"  
  ARCHIVE="/javaclasses/jhtp2.jar">
</APPLET>

Java Notes