ネタ心者歓迎!今更ながらにJava相談室 その4
■ このスレッドは過去ログ倉庫に格納されています
0814↑
NGNGpublic void run(){
try{
while(! isInterrupted()){
Thread.sleep(1000);
currentAngle -= 6;
if(currentAngle == 0){
currentAngle = 360;
}
repaint();
}
} catch(InterruptedException e){/* */}
return;
}
停止させるときは:
animator.interrupt();
animator = null;
■ このスレッドは過去ログ倉庫に格納されています