Is it possible to set the mouse cursor to become a pointer (hand) when hovering a Node width JavaFX Scene Builder? How?
JavaFX Scene Builder: pointer cursor onMouseOver
Asked Answered
You can add the following Style
to the Node in question:
-fx-cursor: hand;
For additional options, check out the JavaFX CSS Documentation
Why haven't I found that myself? Thanks. :) –
Sharilyn
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;
}
`
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.
© 2022 - 2024 — McMap. All rights reserved.