Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaFX Scene Builder: pointer cursor onMouseOver

Is it possible to set the mouse cursor to become a pointer (hand) when hovering a Node width JavaFX Scene Builder? How?

like image 850
Morrandir Avatar asked Aug 06 '13 17:08

Morrandir


People also ask

How do I change cursor to Pointer in JavaFX?

By default, the cursor will be set to a simple pointer. To manipulate the cursor you can access it via the scene using : scene. setCursor(Cursor.

Where is JavaFX SceneBuilder?

Download and install the latest version of Scene Builder. In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Languages & Frameworks | JavaFX. in the Path to SceneBuilder field. In the dialog that opens, select the Scene Builder application (executable file) on your computer and click OK.


1 Answers

You can add the following Style to the Node in question:

-fx-cursor: hand;

For additional options, check out the JavaFX CSS Documentation

like image 52
Alexandre Avatar answered Sep 18 '22 00:09

Alexandre