I am trying to update the code for a Greenfoot game I made so that the mouse cursor is hidden. In previous version I manage to do that with some Swing code but since 3.5.0 switched from Swing to JavaFX that code no longer works. I know how to set the cursor if I have a reference to the JavaFX Scene, and I have found in the source code the GreenfootStage class which extends Stage, but I can not find a way to access the GreenfootStage of the game. Can anyone please help me?

