Adding an Applet tag to HTML page
Version 1.6

This is the archives. For the latest Bambookit GUI 2.0, XML GUI Demos & Tutorials visit:

Java applets are self-contained programs written in the Java, that can be placed on a web page just like a graphic. Java is an object-oriented programming language developed by Sun Microsystems. It should be noticed that it is not related to JavaScript, which is a scripting language developed by Netscape Navigator to run within an HTML document in a browser.

Because Java is a full programming language, it can be used to create the whole applications, for example, in form of java applet, a self-contained mini-executable program. This program, named with .class suffix, can be placed right on the web page.

Java applet also requires the library, a jar file, which Bambookit provides. Bambookit jar file incorporates the result of a few years of work rewriting java from scratch to provide a lightweight (only 80Kb for all Bambookit controls) framework for building real-time, interactive Internet applications that brings desktop functionality into browser windows.

Those are the steps you have to take to create an applet:
  • Create an HTML document in an HTML editor of your choice(i.e. WordPad,Front Page,Dreamweaver...).
  • In the body of html file place your Bambookit Applet. The use of applet tags explained bellow.
  • Save the file. Place HTML document in the same directory where Bambookit jar file resides. Double-click on it to open it as a Web Page, or open it with your HTML editor to modify.

    The <APPLET> tag.

    Applet is added to the body of HTML page through the use of applet tags (<applet> as an opened tag and </applet> as a closed tag). Between the applet tags are param tags that specify the content and formatting for the applet.

    <applet archive="bamboo_1_1.jar" code="Loader.class" width=400 height=400>
    <param name="background" value="e0d0a9">
    <param name="loadgui" value="tutorials_button_url.xml">
    <param name="preload" value="images/mac.gif,images/windows.gif">

    An explanation of the attributes:

    archive, identifies the library that is required, in our case it will be the name of the jar file that you have purchased (i.e. bamboo.jar)
    code, is the bootstrap program that initializes the Bamboo applets, and you should always provide it as: code="Loader.class" in all your applets that you base on bambookit.
    param, the values with which we pass on to the bootstrap program.
    name, the name of the applet attribute, in our case a "background" with value set.
    name="gui value="button_url.xml", that is the user interface that we would be loading into the browser, gui (graphical user interface) to load a file button_url.xml.
    name="preload" value="images/mac.gif,images/windows.gif" preload allows to load on the background the specified image while the home page is loaded and displayed. This allows to avoid problems associated with images when they took some time to download for display.
  • [Home][Tutorial] [Demo]

    Jar File Applet Tag XML Files