How to create custom cursor in javaFX?
I am trying to create custom cursor in javaFX. Here is my code: Image image = new Image("mycursor.png"); Pane pane= new Pane(); pane.setCursor(new ImageCursor(image, image.getWidth() / 2, image.getHeight() /2)); Is the creation of cursors for windows 8.1 does not work? Checkout the ImageCursor.getBestSize() methods and ImageCursor.getMaximumColors() and see what they return, then try a custom cursor image which matches the best size and maximum colors. Most likely this will be a 32x32 cursor for Windows 8.1. Here is a quote from the ImageCursor.getBestSize() javadoc: Gets the supported cursor