import java.awt.Canvas;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
class Test extends Canvas implements Runnable{
// TODO Auto-generated method stub
String msg;
int msgLength;
int x_character=0;
Font wordFont;
int width,height;
Image offImg;
Graphics offG;
Thread runThread;
static boolean stop;
int delay;
public Test(int width,int height){
this.width=width;
this.height=height;
first();
}
public void first(){
wordFont=new Font("TimesRoman",Font.PLAIN+Font.BOLD,15);
msg="小清要加油";
msgLength=msg.length();
delay=600;
stop=false;
runT