7

In javaFX scrollpane. It scrolls so slowly.. Any method to boost it up? I've looked all over here, and no luck.. I've found some thread about listview..

Demonstration:

enter image description here

GOXR3PLUS
  • 6,877
  • 9
  • 44
  • 93
Christian Moen
  • 1,253
  • 2
  • 17
  • 31
  • I see that there is a method on https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ScrollBar.html#setUnitIncrement for setting the unit Increment. But how can i access it ? – Christian Moen Oct 30 '16 at 13:37

2 Answers2

2

You could do this in the FXML styling.

.scroll-pane .scroll-bar:vertical {
-fx-unit-increment: 5 ;
-fx-block-increment: 5 ;
}

.scroll-pane .scroll-bar:horizontal {
-fx-unit-increment: 5 ;
-fx-block-increment: 5 ;
}

Play around with the unit and block increment numbers until you get a desired effect.

Dustin
  • 693
  • 8
  • 20
0

Set cache to true.

In the pane inside the scrollpane not scrollPane.

yourPane.setCache(true);

Or in SceneBuilder Properties-Extras-select Cache CheckBox