An applet has the extention ".class" and must be specified in a ".html"-file. There you specify the applet NAME, WIDTH and HEIGHT. You can also specify the CODEBASE , which is for locating the directory where the applet can find the images or sounds if such are required by the applet. If you put all the files in the same directory as the ".class"- and "html"-file this value is not required. The applets are configured by changing parameter values in the html-file , the general structure is seen below:
<PARAM name="myparameter" value="myvalue">
<PARAM name="anotherparameter" value="anothervalue">
When you download applets which displays text you will often be able to choose between the platform independent fonts seen in the picture to the right. You will also be able to choose between using "Bold" or "Italic" on all fonts.
Color are choosen from the RGB format like red , blue , green , cyan , white , magenta , yellow..etc. It can be written in such a way:
<BODY TEXT="#FFFFFF" BGCOLOR="000000".......>
|Images and sound
Some java-applets requires sound or pictures. The sound files must be in .au-format with a frequency of 8 kHz. The images must be in GIF or JPEG format. Note that the programs accepts transparent GIF 89 images , although some browsers show the transparent areas with some dots.
You can chance the sound clip for each applet. Just copy the sound clip file into the same directory , and rename the filename in the source code as for images , links and messages.
Just cut and paste the source code onto the BODY of your webpage. You can use any HTML editors or your notepad. The HTML source code with sound clips and classes are all in ZIP form. So, download it, unzip it and save it into the same directory!. Please change the filename, give a title for that page and try to modify the source code! I will try to give the comment for the important lines. The source code will also printed out for each example.
you are not clear about the steps goto my installation page to view the
complete steps to do it. here i will guide you step by step on the installation
of the java applets and java scripts to your web page.
|My collection of all these Java Applets are in :|
If you have any suggestions , questions or problems with my page , please foward it through e-mail. If you have any interesting Java Applets or Java Scripts sites , please let me know the URL.