hi all.
i m working on a game on b4j and i need change the icon of the mouse pointer in some places, like doors etc...
how can i change the mouse icon to a png icon?
i found here on the forum how change the icon to another icon of java fx but not how change to a png image.
i found this on google
have a example to change a icon to batman icon.
https://blog.idrsolutions.com/2014/05/tutorial-change-default-cursor-javafx/
i m tryed this here on b4j with this code
but dont works.
how can i make this on b4j?
many thx
i m working on a game on b4j and i need change the icon of the mouse pointer in some places, like doors etc...
how can i change the mouse icon to a png icon?
i found here on the forum how change the icon to another icon of java fx but not how change to a png image.
i found this on google
have a example to change a icon to batman icon.
https://blog.idrsolutions.com/2014/05/tutorial-change-default-cursor-javafx/
i m tryed this here on b4j with this code
B4X:
Private mouseimage As Image
mouseimage.Initialize(File.DirAssets,"cursor.png")
Dim joObj As JavaObject = MainForm.RootPane
joObj.RunMethod("setCursor", Array(mouseimage))
but dont works.
how can i make this on b4j?
many thx