This example draws a text message in color and cycles through a series of colors. It doesn't require blanking the screen. |
public class ColorSwirl extends java.applet.Applet |
implements Runnable { |
Font f= new Font ("TimesRoman", Font.BOLD, 48); |
Color colors [] = new color [50]; |
Thread runThread; |
public void start () { |
if (RunThread == null) { |
runThread = new Thread (this); |
runThread.start ();
|