codebase
     
 

A very important attribute in the applet tag is the entry 'codebase'. Java has a very restrictive security mechanism to avoid misuse and damages. An applet can't access a file if it is not loaded from the server where itself came from. To load the news.txt file it has to be in a directory you specify in the codebase attribute. So create a directory, put NewsLine.jar and news.txt in it and write the name of this directory as a value into the codebase attribute.
Thanx Lacki

 
 
joerg 'lacki' lackner - java, jini, applets - jlacki@yahoo.com
 
 

configuration

 
  website faq sample  

         
 
Manual
   
   

First of all copy the content of the NewsLine.txt file into your HTML document. Choose your own values for width and height and insert them. Do the same with the parameter for speed, font and fontsize. Add your own look 'n feel by specifying the colours of this applet.

    background
  • Should be the same colour as the colour of your document.
    foreground
  • The colour of the box in which the text will be displayed.
    shadow
  • The colour of the shadow. What else?
    textcolour
  • The colour of the displayed text.
    headcolour
  • Specify here how your headline will be written.
    polygoncolour
  • This is the ground of the headline.