Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide the horizontal Scrollbar of a ListView in JavaFX

How can I hide the horizontal scrollbar of a ListView? I tried it in different ways and probably it's totally easy, but I just can't get it to run.

like image 425
BernhardS Avatar asked Oct 01 '12 08:10

BernhardS


1 Answers

Try this in the CSS:

.list-view .scroll-bar:horizontal .increment-arrow,
.list-view .scroll-bar:horizontal .decrement-arrow,
.list-view .scroll-bar:horizontal .increment-button,
.list-view .scroll-bar:horizontal .decrement-button {
    -fx-padding:0;
}
like image 186
Dmitry Kotenko Avatar answered Sep 28 '22 06:09

Dmitry Kotenko