This site requires JavaScript, please enable it in your browser!
Greenfoot back
AlexDascalu
AlexDascalu wrote ...

2018/11/15

Hide cursor in Greenfoot 3.5.0 onwards

AlexDascalu AlexDascalu

2018/11/15

#
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?
You need to login to post a reply.