```py public void run() { while(running){ if(pause){ continue; } repaint(); try { Thread.sleep(100); } catch (InterruptedException e) { e.printStackTrace(); } } } ``` continue前加个Thread.sleep(100);可以解决无限卡死问题
continue前加个Thread.sleep(100);可以解决无限卡死问题