149 ColorSwirl--Teach Yourself Java in 21 Days中的一个例子- I
这个例子用一系列循环的色彩画出一些字符信息. 它不需要清理屏幕.
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 ();
}}
Copyright: NPACT