LICENSE
This license ("License") contains rights and restrictions associated with use of the accompanying software. Read the License carefully before utilizing the software. By using the software you agree to be bound by the terms and conditions of this license.
Congratulations...
Introduction
You should be careful to check that your unzipping program has named the files correctly. Some DOS programs will name according to the old 8.3 format, rename .class files "*.cla". You can rename them by opening up a DOS window and typing:
ren *.cla *.class |
It may also be possible that some of the graphics files included in archive have also be renamed. All of their names should be spelt with lower case letters.
The Gallery Example
The code which produces the above is:
<applet code="PopMenu" width=400 height=29> <param name="labelpos" value="right"> <param name="frame" value="display"> <param name="src0" value="ball1.gif"> <param name="text0" value="Home"> <param name="href0" value="index.htm"> <param name="src1" value="ball1.gif"> <param name="text1" value="This Week.."> <param name="href1" value="thisweek.htm"> <param name="src2" value="ball1.gif"> <param name="text2" value="Gallery"> <param name="href2" value="spigots.htm"> <param name="src3" value="ball1.gif"> <param name="text3" value="Forums"> <param name="href3" value="forums.htm"> <param name="src4" value="ball1.gif"> <param name="text4" value="Beginners"> <param name="href4" value="beginners.htm"> <param name="src5" value="ball1.gif"> <param name="text5" value="Programming"> <param name="href5" value="programming.htm"> </applet> |
Paying for the Applet
There is NOTHING to pay. The applet is completely free. However, if you make a donation ($5 - $10?) to Ty Hafan, Children's Hospice of Wales, which is a charitable appeal formed to build, equip and run a Children's Hospice in Wales to provide care for terminally ill children, you can consider your applet well-and-truly registered. Click here for details on how to make a donation.
Of course, if you really think that you can't get through the day without letting me have some cash (oh botheration... all right then...) I would appreciate it if you clicked on one of the discussion group adverts and set up a Nerdworld discussion group. It's free, only takes a minute and I get 50 cents every time it happens (Aha! I will have enough money for that Nuclear Powered Set of Nasal Clippers yet!)
Using PopMenu in a web page...
To include PopMenu in a web page, you should copy the PopMenu.class and PopBtn.class files into the same directory as the web page and then insert an <APPLET...> tag into the page, e.g.
<applet code="PopMenu" width=400 height=29> <param name="labelpos" value="right"> <param name="frame" value="display"> <param name="src0" value="ball1.gif"> <param name="text0" value="Home"> <param name="href0" value="index.htm"> Put something here for browsers that don't use Java. </applet> |
The following parameter can be passed to Lake:
I'd suggest you put the class files in the same directory as the page on which it will appear. If you want to move it elsewhere then use the "CODEBASE" option to point to the appropriate directory.
Some implementations of Java will not allow you to put the .class file in one subdirectory and the image file in another. If the try it might cause a security exception.
Troubleshooting
Why won't the applet work off my hard disk?
Some web browsers have trouble opening applets straight from a hard disk. I have noticed this happen with Internet Explorer 3 and Netscape 4. Once you have loaded the class file and the web page onto your web site you should find it works OK.
Why does my web page say "Class Format Error"?
Class files are binary files, just like image files are. Binary files contain more information than text (also known as ASCII) files do. If you transfer class files as if they were ASCII files then they will lose this extra information and will become corrupted. How do you transfer class files as binary files? You should transfer them in the same way that you transfer image files.
Why does my web page say "Class Not Found"?
This is a very common problem. It may be because of one of the following:
Examples from the Web
Linking to my site
If you use this applet then it would be nice if you gave me a link by copying the image:
(this is the file "dglogo.gif" in the .zip archive) into the same directory as your web page and then pasting the following into your page.
<a href="http://www.demon.co.uk/davidg/spigots.htm" target="_top"> <img src="dglogo.gif" width=88 height=31 border=0></a> |
It will put a little button on your page that will link through to my Java Spigots page.
It is only a request: feel free to omit it.
Transferring files
Contacting Me
If you still have trouble getting the applet to work and you have tried all of the possible solutions listed above, then feel to contact me, remembering to include:
These two pieces of information will make it a lot easier for me to solve the problem. I cannot guarantee that I will be able to respond to all messages (there's only so many hours in the day...) but sending the URL of a page that doesn't work will greatly increase the chances of getting an answer.
Remember to keep a look out at my web site for new applets.
03/02/1999
Created in Glorious Polyphonic HPL Last updated: Wednesday 3 February 1999 |