20

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

Morrandir
  • 595
  • 1
  • 4
  • 19

3 Answers3

46

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

-fx-cursor: hand;

For additional options, check out the JavaFX CSS Documentation

Alexandre
  • 4,382
  • 2
  • 23
  • 33
2

for the new one you can use this in your css file

.glyph-icon{
    -fx-fill: White;
}
.glyph-icon:hover{
    -fx-cursor: hand;
    -fx-fill: black;
}

`

Samer
  • 126
  • 1
  • 9
0

In the latest Version of Gluon Scene Builder (v11+), this feature is available under the Properties > Cursor with a few other options as well.

The good thing about this feature is that the cursor is updated while you view the options, i.e how will setting that property look like as shown in the below GIF.

enter image description here

heethjain21
  • 130
  • 1
  • 9