Here's the problem: I need the execution to be stopped when the Scores class is the active world, but I also need that the user can't reset the World. When I do Greenfoot.stop(); in the constructor then doing:
PauseSimulationAction.getInstance().setEnabled(false);
ResetWorldAction.getInstance().setEnabled(false);
doesn't work (anymore). Any solutions?
I just got a ClassNotFoundException. (I forgot what to do in such cases.) Maybe it's because my Java is out of date. Here's what came up in the window which popped up when I clicked on "Details":
Java Plug-in 11.121.2.13 x86
Using JRE version 1.8.0_121-b13 Java HotSpot(TM) Client VM
2017/5/5
2017/5/15
2017/5/15
2017/5/17
2019/12/13