Lenz


To use Lenz on your site you should put lenz.cab, lenz.jar and the images you want to use on your server. That'll make it work with netscape 4+ and MSIE 3+. If you also want it to be viewable in netscape 3 you should unzip lenz.jar and put all class files in it on your server too.

You should call the applet from a html file like this:
<APPLET code="Lenz.class" archive="lenz.jar" width=480 height=480>
<PARAM name="cabbase" value="lenz.cab">
<PARAM name="image" value="yourimage.jpg">
</APPLET>

This will point netscape to the lenz.jar file and MSIE to the lenz.cab file. Of course you should enter your own values for the width and the height of the applet.

This is the html code of the applet below:
<APPLET code="Lenz.class" archive="lenz.jar" width=435 height=150>
<PARAM name="cabbase" value="lenz.cab">
<PARAM name="image" value="evolution.gif">
<PARAM name="shape" value="pyramid">
<PARAM name="size" value="40">
<PARAM name="color" value="007FFF">
<PARAM name="transparency" value="0.5">
</APPLET>

The 'image' parameter can be used to point Lenz to the image to be used. The 'size' parameter contains the radius of the lens. It can be at most 60. To change the color of the lens you can enter a hexcolor code in the 'color' parameter. Another parameter is 'transparency'. Here you should enter a number between 0 and 1. 1 stands for a completely transparent lens and 0 will result in a solid lens. You can also choose the shape of the lens by entering 'sphere' or 'pyramid' in the 'shape' parameter. To make a link out of Lenz you should enter a URL in the 'link' parameter. The 'target' parameter can be used to assign the target frame.


Back to the Lenz applet page.

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.