Currently I develop a JavaFX application for the Raspberry Pi 3. For development on my PC I use Ubuntu 16.04.1, OpenJDK 1.8.0_111 and OpenJFX 8.0.60. For operation on the Raspberri Pi I use Raspbian Jessie with PIXEL (boot in console mode), OpenJDK 1.8.0_40 and OpenJFX 8.0.60.
A graphical mouse cursor is unnecessary, because the user should only interact with the application using a touch screen. Furthermore the mouse cursor is annoying, because it slightly covers the content of the screen. In addition it irritates the user by changing its position whenever the screen is touched. Therefore I want to hide the mouse cursor on the screen.
On my PC I am able to hide the mouse cursor using the following code:
scene.setCursor(Cursor.NONE);
I start the application on the Raspberry Pi from bash shell using
java -jar MyApp.jar
After doing so the setCurser property works initially. But after touching the screen or moving the mouse the default mouse cursor appears on the screen. This seems to be an unresolved problem: Post on raspberrypi.org forum
The OpenJFX Wiki says:
Note that the default configuration of JavaFX on the Raspberry Pi does not use X11. Instead JavaFX works directly with the display framebuffer and input devices. So you should not have the X11 desktop running when starting JavaFX.
As a workaround, how can I hide the graphical mouse cursor in the framebuffer on Raspbian Jessie?