Creating a Bongo Applet

This page shows how you can add a simple applet created with Bongo to an HTML page. The Applet source code is located in TempApplet.java. You need to add the following tag to the document:

  <applet code=TempApplet codebase=classes width=400 height=200>
  </applet>


Notes

You must make the Bongo classes available to the browser. You can do this by unzipping the marimba.zip and bongo.zip files into the classes directory. You can also add the marimba.zip file to your CLASSPATH and restart the browser, but in that case it will not work for all users of the page.

It is advisable to use a codebase, otherwise you may have problems editing the temp.gui file in Bongo.

Not all browsers allow you to open this page using a file: URL (because of an SecurityException). If the presentation does not appear below, then try visiting this page using an http: URL.

Don't use scripting in a presentation that you want to use in a browser. Scripting is done using class loaders and will cause many security violations.

To unzip the marimba classes try the following:

  cd classes
  unzip ..\..\..\lib\marimba.zip
  cd ..

To compile this applet try the following:

  set CLASSPATH=.;classes
  javac -d classes TempApplet.java