[ Site Map (Frames) | Site Map (No Frames) | Guest book ]

Welcome. Optimised for IE4 and above.

ALL THE JAVA APPLETS BELOW ARE FREEWARE

ENHANCE YOUR PAGE WITH JAVA

AS FEATURED IN EL OBSERVEDAD URUGUAY

 

Java on the webHome Page authorimg1.gif (2398 bytes)More java on the web

Free Java Applets - www.javapowered.com



These Java applets free to use on personal web pages. Also available at no charge to non profit making orginisations.
If you think you would like to use any of them please download the jar file which includes all the Java classes required for the applet to run. Then copy it to the same directory that your web page is in and amend the HTML using the examples below as a guide. All I would like in return is that you include a link to me on your page and acknowledge my authorship. NB links are included on the first two applets.

NB I have assumed in all cases that you will be loading all required files into the same directory as your Web page.

Image Link Java applet HTML
Got loads of graphical links on your page but not enough room to for them all to be seen. This applet circles through your images and the associated links. All you need to do is enter the URLs , image name and any caption you wish into the HTML code.

PS don't forget to enter the redval, greenval and blueval values to get a better background colour than I have!

Java resource on the web

Download newImageLinker.jar 7Kb 

3dText Java applet HTML
If you've ever wanted to add some 3D text to your page but don't have a graphics editor that can do the job this might be the answer for you.

See also 3dTextTest for full instructions and auto generated HTML.

"Cool!" - javapowered.com

Download 3dText.jar7Kb

Text Link Java applet HTML
The same as ImageLink but without the images. Takes up very little room on your page. NB with both of these you decide on the speed

Download TextLink.jar6Kb

Wiggle Java applet HTML
Ok this is a bit of fun but really good at making a short caption or heading stand out.

Sorry no Java no wiggle!

Download Wiggle.jar 5Kb

Scroller Java applet HTML
Do you ever need to add information at short notice to your site? But don't want to re design. With this applet simply type in your message(s). Really eye catching without being too gimmicky. Review below from Freewarejava.com

"Horizontal-then-vertical scrollerfreewareNew!
This unique Java scroller scrolls your messages first from left to right into view, pauses, then scrolls up and away. Very interesting. "

Java resource on the web

Download ScrollingText.class 4Kb

StickMan Class java source
This is one for the programmers. If you've ever needed to include a "Stick man" in an applet or application you'll know what a pain it is to have to re calculate all those co-ordinates every time.

Methods (so far)are move(int x,int y),
translate(int x,int y)and grow(int increase). The constructor method takes three arguments StickMan(int height, int x,int y). Move and grow are used in the demo.

Flying Stickmen>Java resource on the web

Stickman Demo

Download StickMan.class 4Kb

Download StickMan.java 6Kb

 


HTML Samples

Image Link Java applet

The code below is the HTML code used to include the Image Link Java applet on this page.
Change the entries after VALUE= to your own values but remember to include them within the quotation marks. <PARAM NAME="imgPause" VALUE="2000"> controls how fast the images change. 2000 is about 2 seconds. Using transparent gifs can be very effective especially if you choose to make the applet background colour the same as the web page's.
You can include more or fewer links if you wish. If you wish to use more follow the format below up to and including:-

<PARAM NAME="linkPic11" VALUE ="myimagename.jpg or myimagename.gif">
<PARAM NAME="title11" VALUE="My title for this link">
<PARAM NAME="www11" VALUE="http://fullurl ">

Any more will be ignored.

<P><APPLET CODE="newImageLinks.class" ARCHIVE="newImageLinker.jar" WIDTH="450" HEIGHT="100" ALIGN="BOTTOM" align="baseline">
<PARAM NAME="redval" VALUE="0">
<PARAM NAME="greenval" VALUE="255">
<PARAM NAME="blueval" VALUE="128">
<PARAM NAME="imgPause" VALUE="2000">
<PARAM NAME="linkPic1" VALUE="hangman.jpg">
<PARAM NAME="title1" VALUE="Simpsons hangman game">
<PARAM NAME="www1" VALUE="http://www.ianktaylor.clara.net/hang.html">
<PARAM NAME="linkPic2" VALUE="lottery.jpg">
<PARAM NAME="title2" VALUE="Get your lucky numbers">
<PARAM NAME="www2" VALUE="http://www.ianktaylor.clara.net/Belucky.htm">
<PARAM NAME="linkPic3" VALUE="morph.jpg">
<PARAM NAME="title3" VALUE="MorphinPoly">
<PARAM NAME="www3" VALUE="http://www.ianktaylor.clara.net/morphinpoly.htm">
<PARAM NAME="linkPic4" VALUE="SidLogo.jpg">
<PARAM NAME="title4" VALUE="Music by unsigned artists">
<PARAM NAME="www4" VALUE="http://unclesid.iuma.com">
<PARAM NAME="linkPic5" VALUE="illusion.jpg">
<PARAM NAME="title5" VALUE="Don't believe your eyes">
<PARAM NAME="www5" VALUE="http://www.ianktaylor.clara.net/illusion.htm">
<PARAM NAME="linkPic6" VALUE ="mycv.jpg">
<PARAM NAME="title6" VALUE="My online CV">
<PARAM NAME="www6" VALUE="http://www.ianktaylor.clara.net/webcv.htm">

</APPLET>

3dText Java applet

Below is the HTML for this applet for you to cut and paste. For more information go to3dTextTest where you'll find another handy applet which will take some of the guess work out of the parameters you need to change. The only parameters not covered there are XOFFSET and YOFFSET which basically allow you to position the text anywhere you want within the applet. Please bear in mind if you change these parameters you'll have to calculate the applet width and height for yourself. As a guide if you change XOFFSET to "10" you'll need to increase the applet width by 20.

<APPLET CODE="Easy3d.class" ARCHIVE="3dText.jar" WIDTH="221" HEIGHT="56" ALIGN="BOTTOM"><PARAM NAME="TXTRED" VALUE="192">
<PARAM NAME="TXTGREEN" VALUE="192">
<PARAM NAME="TXTBLUE" VALUE="192">
<PARAM NAME="BKRED" VALUE="192">
<PARAM NAME="BKGREEN" VALUE="192">
<PARAM NAME="BKBLUE" VALUE="192">
<PARAM NAME="DEPTH" VALUE="12">
<PARAM NAME="FONTSIZE" VALUE="36">
<PARAM NAME="FONT" VALUE="Helvetica">
<PARAM NAME="ALIGNMENT" VALUE="1">
<PARAM NAME="TEXT" VALUE="Hello World!">
<PARAM NAME="POP" VALUE="false">
<PARAM NAME="FIXRED" VALUE="true">
<PARAM NAME="FIXGREEN" VALUE="false">
<PARAM NAME="FIXBLUE" VALUE="true">
<PARAM NAME="NOWRAP" VALUE="false">
<PARAM NAME="REVERSE" VALUE="false">
<PARAM NAME="XOFFSET" VALUE="0">
<PARAM NAME="YOFFSET" VALUE="0">
</APPLET>


Text Link Java applet

Instructions basically as for the image links Java applet except you have no images to worry about.

<P><APPLET CODE="TextLinks.class"ARCHIVE="TextLink.jar" WIDTH="450" HEIGHT="50" ALIGN="BOTTOM" align="baseline">
<PARAM NAME="txtPause" VALUE="2000">
<PARAM NAME="title1" VALUE="Simpsons hangman game">
<PARAM NAME="www1" VALUE="http://www.ianktaylor.clara.net/hang.html">
<PARAM NAME="title2" VALUE="Get your lucky numbers">
<PARAM NAME="www2" VALUE="http://www.ianktaylor.clara.net/Belucky.htm">
<PARAM NAME="title3" VALUE="MorphinPoly">
<PARAM NAME="www3" VALUE="http://www.ianktaylor.clara.net/morphinpoly.htm">
<PARAM NAME="title4" VALUE="Music by unsigned artists">
<PARAM NAME="www4" VALUE="http://unclesid.iuma.com">
<PARAM NAME="title5" VALUE="Don't believe your eyes">
<PARAM NAME="www5" VALUE="http://www.ianktaylor.clara.net/illusion.htm">
<PARAM NAME="title6" VALUE="My online CV">
<PARAM NAME="www6" VALUE="http://www.ianktaylor.clara.net/webcv.htm">
</APPLET>

Wiggle Java applet

You can set the parameters fontsize, intext and pause. The first two should be self explanatory. Please note, however that the lower the value for pause the faster the animation. One point to note. See the phrase Sorry no Java no wiggle! This is a message for people whose browsers can't run Java applets. You can include a similar message in any of the above HTML by entering it in a similar position.

<APPLET CODE="Wiggler.class"
align="top" width="320" height="50" archive="Wiggle.jar">
<PARAM NAME= "fontsize" value="21">
<PARAM NAME="intext"value="Your text here! Your text here!">
<PARAM NAME="pause" value="50">
Sorry no Java no wiggle!</applet>

Scroller Java applet

Simply replace the text0 etc values with your own text. You can enter as many or as few text valuesas you wish but don't forget to enter the number of lines you have at the"LINES" value. When doing this please note that if your last line is text11 LINES will be equal to 12 because we're counting from 0. SPEED controls the speed of animation and PAUSE the pause between horizontal and vertical scroll. You can now also set the colours for the background, text and shadow.

<applet code="ScrollingText.class" align="baseline" width="450" height="100" >
<param name="text0" value="Welcome to my homepage">
<param name="text1" value="Totally Trivial Simpsons Hangman">
<param name="text2" value="Change your luck with Lottery Picker">
<param name="text3" value="Lose yourself in MorphinPoly">
<param name="text4" value="Browse my CV - Need any Java?">
<param name="text5" value="Search the web with Google">
<param name="text6" value="All java applets by Ian Taylor">
<param name="text7" value="Click the graphical links to navigate">
<param name="text8" value="Thanks for visiting - Ian">
<param name="text9" value="Latest addition illusion applet">
<param name="text10" value="Coming soon easy3d text">
<param name="LINES" value="11">
<param name="SPEED" value="10">
<param name="PAUSE" value="500">
<param name="RVAL" value="150"><!--Sets the text colour -->
<param name="GVAL" value="150"><!--enter a red,green and blue-->
<param name="BVAL" value="192"><!--decimal value-->
<param name="TXTRVAL" value="255"><!--The same for the text colour-->
<param name="TXTGVAL" value="255">
<param name="TXTBVAL" value="0">
<param name="SHADRVAL" value="0"><!--And for the drop shadow-->
<param name="SHADGVAL" value="230">
<param name="SHADBVAL" value="230">
</applet>



StickMan.Java

import java.awt.*;

public class StickMan {
/*This class provides the co ords for a stick figure which you can
use in your paint method eg drawOval(xPo,yPo,headHeight,headWidth)
drawLine(bodyStartX,bodyStartY,bodyEndX,bodyEndY) draws the figures head and body.
*/


int xPo;
int yPo;
int figHeight;
int figWidth;
int headWidth;
int headHeight;
int bodyLength;
int headX,headY;
int bodyStartX,bodyStartY;
int bodyEndX,bodyEndY;
int lArmStartX,lArmStartY;
int lArmEndX,lArmEndY;
int rArmStartX,rArmStartY;
int rArmEndX,rArmEndY;
int lLegStartX,lLegStartY;
int lLegEndX,lLegEndY;
int rLegStartX,rLegStartY;
int rLegEndX,rLegEndY;
int oldHeight;
int oldxPo;
int oldyPo;

public StickMan(int figHeight,int xPo, int yPo){



//Calculates the coordinates for all the body components
//NB xPo and yPo refer are the co ords for the circle
//that forms the head.

oldHeight=figHeight;
oldxPo=xPo;
oldyPo=yPo;
figWidth=(int)Math.floor(figHeight*4/10);
headWidth=(figWidth/2);
headHeight=headWidth;
bodyLength=figWidth*3/4;
headX=(xPo+(figWidth/2)-(headWidth/2));
headY=yPo;
bodyStartX=headX+(headWidth/2);
bodyStartY=headY + headHeight;
bodyEndX=bodyStartX;
bodyEndY=bodyStartY+bodyLength;
rArmStartX=bodyStartX;
lArmStartX=bodyStartX;
rLegStartX=bodyStartX;
lLegStartX=bodyStartX;
rArmStartY= bodyStartY+(bodyLength/4);
lArmStartY= bodyStartY+(bodyLength/4);
rLegStartY= bodyStartY+bodyLength;
lLegStartY= bodyStartY+bodyLength;
rArmEndX=bodyStartX+(figWidth/2);
lArmEndX=bodyStartX-(figWidth/2);
rLegEndX=bodyStartX+(figWidth/2);
lLegEndX=bodyStartX-(figWidth/2);
rArmEndY=rArmStartY;
lArmEndY=lArmStartY;
rLegEndY= rLegStartY + bodyLength;
lLegEndY= lLegStartY + bodyLength;


}

public void move (int x,int y){
//moves the figure to the co ords given

xPo = x;
yPo = y;
headX=(xPo+(figWidth/2)-(headWidth/2));
headY=yPo;
bodyStartX=headX+(headWidth/2);
bodyStartY=headY + headHeight;
bodyEndX=bodyStartX;
bodyEndY=bodyStartY+bodyLength;
rArmStartX=bodyStartX;
lArmStartX=bodyStartX;
rLegStartX=bodyStartX;
lLegStartX=bodyStartX;
rArmStartY= bodyStartY+(bodyLength/4);
lArmStartY= bodyStartY+(bodyLength/4);
rLegStartY= bodyStartY+bodyLength;
lLegStartY= bodyStartY+bodyLength;
rArmEndX=bodyStartX+(figWidth/2);
lArmEndX=bodyStartX-(figWidth/2);
rLegEndX=bodyStartX+(figWidth/2);
lLegEndX=bodyStartX-(figWidth/2);
rArmEndY=rArmStartY;
lArmEndY=lArmStartY;
rLegEndY= rLegStartY + bodyLength;
lLegEndY= lLegStartY + bodyLength;
}


public void translate(int x,int y){
// moves the figure by the amounts given

xPo=oldxPo;
yPo=oldyPo;
xPo=xPo+x;
yPo=yPo+y;
headX=xPo;
headY=yPo;
bodyStartX=headX+(headWidth/2);
bodyStartY=headY + headHeight;
bodyEndX=bodyStartX;
bodyEndY=bodyStartY+bodyLength;
rArmStartX=bodyStartX;
lArmStartX=bodyStartX;
rLegStartX=bodyStartX;
lLegStartX=bodyStartX;
rArmStartY= bodyStartY+(bodyLength/4);
lArmStartY= bodyStartY+(bodyLength/4);
rLegStartY= bodyStartY+bodyLength;
lLegStartY= bodyStartY+bodyLength;
rArmEndX=bodyStartX+(figWidth/2);
lArmEndX=bodyStartX-(figWidth/2);
rLegEndX=bodyStartX+(figWidth/4);
lLegEndX=bodyStartX-(figWidth/4);
rArmEndY=rArmStartY;
lArmEndY=lArmStartY;
rLegEndY= rLegStartY + bodyLength;
lLegEndY= lLegStartY + bodyLength;
}

public void grow(int increase){
//the figure increases in size by the amount given.

figHeight=oldHeight+increase;


figWidth=(int)Math.floor(figHeight*4/10);
headWidth=(figWidth/2);
headHeight=headWidth;
bodyLength=figWidth*3/4;
headX=(xPo+(figWidth/2)-(headWidth/2));
headY=yPo;
bodyStartX=headX+(headWidth/2);
bodyStartY=headY + headHeight;
bodyEndX=bodyStartX;
bodyEndY=bodyStartY+bodyLength;
rArmStartX=bodyStartX;
lArmStartX=bodyStartX;
rLegStartX=bodyStartX;
lLegStartX=bodyStartX;
rArmStartY= bodyStartY+(bodyLength/4);
lArmStartY= bodyStartY+(bodyLength/4);
rLegStartY= bodyStartY+bodyLength;
lLegStartY= bodyStartY+bodyLength;
rArmEndX=bodyStartX+(figWidth/2);
lArmEndX=bodyStartX-(figWidth/2);
rLegEndX=bodyStartX+(figWidth/2);
lLegEndX=bodyStartX-(figWidth/2);
rArmEndY=rArmStartY;
lArmEndY=lArmStartY;
rLegEndY= rLegStartY + bodyLength;
lLegEndY= lLegStartY + bodyLength;
}

}

Have fun!

Ian Taylor 20/08/01

Enter your friends E mail address here 

Enter your friends name here(optional) 

If you wish to send a message to me please type it in the box below and press submit.


[Simpsons Hangman| Harry Potter Hangman | Lottery Picker | Conundrum |Wiggle | Illusion | Flying StickMen |MorphinPoly applets by Ian Taylor]