class MyPanel extends Panel implements Runnable{
public void paint(Graphics g){
g.setColor(Color.white);
for(int i=0;i<150;i++){
thread.sleep(100);//此处提示Unhandled exception type InterruptedException是什么意思
g.drawString("*", (int)(Math.random()*600), (int)(Math.random()*450));
}
}
public void run(){
}
MyPanel(){
}
}
Thread是大写开头。我刚刚手打打错了
catspeake