This example demonstrates how Orbiter2 can be used with fonts which are not directly supported by Java.


Extracting needed files

Use WinZip to decompress the orbiter2.zip archive.  Place the following files from the archive into the same directory with the HTML file of the page which is to display the applet.  Be sure to spell and capitalize the file names exactly as shown below:

Orbiter2.class
o2Matrix.class
o2Pixel.class
o2Vector.class
earth2.gif
stars.gif
orbiter2.gif
	  

Sample HTML code

To display this example on your web page, you must insert the following lines of text in the HTML file for the page:

<APPLET CODE="Orbiter2.class" WIDTH=260 HEIGHT=195>
   <PARAM NAME="background" VALUE="stars.gif">
   <PARAM NAME="orbitImage" VALUE="orbiter2.gif">
   <PARAM NAME="planet"     VALUE="earth2.gif">
   <PARAM NAME="tilt"       VALUE="35">
</APPLET>
      

Customizing the applet

You will need to use an image editor to create a graphic of the orbiting string in the font of your choice.  Refer to the orbitImage documentation for the specifications of this graphic.

You might also want to change other aspects of the applet to match the style of your page.  For example, you might want change the color of the text or angle of the orbit.  Refer to the Orbiter2 FAQ for complete instructions.




Other examples

This is just one example for using Orbiter2.  Refer to the following examples for other uses:

Using a simple text string
Using a full-color orbiting graphic



Applet Gallery
Applet
Gallery
Send e-mail to Ed Hobbs
Send e-mail
to Ed Hobbs
Home Page
Home
Page
Help
Help