JimBurke
Posts: 9
Joined: Fri Aug 21, 2015 8:44 am
Location: Glasgow, Scotland

Cannot get rid of cursor

Sat Mar 12, 2016 3:23 pm

I'm developing a scoreboard app using NetBeans and JavaFX. Works great.
I have configured a minimal system (Jessie). Doesn't use X or screen manager.

Problem I have is that I cannot get rid of the cursor. When the app starts up the cursor is mid-screen, a pointer type. I've tried various combinations of setting it to different types of cursor, including NONE (see below). None make any difference - I always get the pointer cursor mid-screen.
Here's the code I use :-

Parent root = FXMLLoader.load(getClass().getResource(this.ScreenLayoutFile));
Scene scene = new Scene(root);
scene.setCursor(Cursor.NONE); // <--- DOESN'T WORK !!!!!!!!!!!!!!!!

Any help appreciated.
Jim

Return to “Java”