Search code examples
javajavafx-2javafxscrollpane

How can I set the unit increment for a scroll pane in JavaFX?


The ScrollBar class in JavaFX contains a property for setting the unit increment, which is what I'm after - however I can't find how to get at this ScrollBar, or set the unit increment some other way from the ScrollPane class! I presume I must be missing something obvious - how do I achieve this?


Solution

  • Technically, you should be able to get to it using the .lookup("scrollbar") method after the skin is initialized (if the scrollbar is visible). I don't like that answer though.

    I don't think you're missing anything according to this bug ticket:

    I'd encourage you to jump on that, present your use case, vote, and see if you can get some sort of response in the future.