Animation in Java
 
 
 
 
The Rainbow Banner above uses Java to handle the changing colors.  You can pause or continue the animation by mouse-clicking on the banner.

I wrote the program to create this banner myself, but you can find a similar one which can be customized for your own use on my Web Page for non-Java programmers.  This other version does not include the 3D colored border. 

 
Java Programming Notes:  
A Java program cycles the text characters through the colors of a rainbow.  The graphics update method has been overridden in order to repaint the new colors for each character.  
The draw3DRect method creates a 3-Dimensional border for the text banner in a selected color.  
The Runnable interface has been used to allow the Applet to run inside of a Thread.  Threads are needed to allow the user to suspend the animation.
 

 
A WEBBITS Production
Copyright © 1997 Margaret Brown
 
    WEBBITS Home        Back to WEBBITS First Java Page