由于某些原因,我的run()方法从未被调用,我也不知道为什么。我尝试过在其中放置许多System.out.println语句,但它们从未被打印出来。任何帮助都将不胜感激!public void stopGame() System.out.println("Thread stopped");}
public void run
我想我会把监听器放在另一个线程中,以确保它总是尽可能快地运行,但一旦我这样做了:import java.awt.event.MouseMotionListenerpublic class MouseListenerThread extends Thread implements MouseMotionListener {
// Do so