I want remove the arrows of a JavaFX Spinner. I read how to remove the arrows of MenuButton in this link using CSS...but can't figure out how to do in my case .
Any idea how ..thanks .
I want remove the arrows of a JavaFX Spinner. I read how to remove the arrows of MenuButton in this link using CSS...but can't figure out how to do in my case .
Any idea how ..thanks .
If you want to hide the array shapes you could do the same as the post you mentioned. The CSS properties you are looking for are :
.spinner .increment-arrow-button .increment-arrow {
-fx-padding: 0;
}
.spinner .decrement-arrow-button .decrement-arrow {
-fx-padding: 0;
}
If you don't want to alter their size by changing the padding you could set Shape to something non visible or just change it's background color to -fx-background-color: transparent;