public class ImageCursor
  Comment     Returned-by     Constructor-argument     Method-argument     Field-type     Type-bound     Links  

A custom image representation of the mouse cursor. On platforms that don't support custom cursors, Cursor.DEFAULT will be used in place of the specified ImageCursor.

Example:

import javafx.scene.*;
import javafx.scene.image.*;

Image image = new Image("mycursor.png");

Scene scene = new Scene(400, 300);
scene.setCursor(new ImageCursor(image,
                                image.getWidth() / 2,
                                image.getHeight() /2));
 

extends Cursor

Since:  JavaFX 2.0