parent
5f8910c62b
commit
f13640e374
@ -1,22 +0,0 @@
|
||||
package cn.edu.caztc.sokobangame;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
public class UpdateThread extends Thread{
|
||||
JPanel panel;
|
||||
public UpdateThread(JPanel panel) {
|
||||
this.panel = panel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
while(true){
|
||||
panel.repaint();
|
||||
try {
|
||||
Thread.sleep(10);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue