JavaFX ImageCursor becoming corrupted and not displaying correctly

Viewed 38

I am creating a JavaFX application that is using an ImageCursor. After some time, the cursor stops displaying the image and instead displays this:

Sample
(The "corrupted" cursor (notice the green lines, the yellow is the background of the app))

Why does this happen with the JavaFX ImageCursor class, and how do you prevent this?

NOTE: this only seems to happen when I click off the app and click back in.

0 Answers
Related