Question

is it possible to customize TableView's default scrollbar (vertical one) make it thicker?

Was it helpful?

Solution

There may be a more intuitive way, but if you add extra padding to the sides of the increment and decrement buttons it will have the desired effect:

.table-view .scroll-bar:vertical > .increment-button, 
.table-view .scroll-bar:vertical > .decrement-button {
    -fx-padding: 0.25em 0.5em  ;
}

(The default css used 0.25em on all sides.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top