private void init() {
    skinProperty().addListener(it -> {
      // first bind, then add new scrollbars, otherwise the new bars will be found
      bindScrollBars();
      getChildren().addAll(verticalScrollBar, horizontalScrollBar);
    });

    getStyleClass().add("pretty-scroll-pane");
    setFitToWidth(true);
    setVbarPolicy(ScrollBarPolicy.NEVER);
    setHbarPolicy(ScrollBarPolicy.NEVER);

    verticalScrollBar.setManaged(false);
    verticalScrollBar.setOrientation(Orientation.VERTICAL);
    verticalScrollBar.getStyleClass().add("vertical-scrollbar");
    verticalScrollBar.visibleProperty().bind(verticalScrollBar.visibleAmountProperty().lessThan(1));

    horizontalScrollBar.setManaged(false);
    horizontalScrollBar.setOrientation(Orientation.HORIZONTAL);
    horizontalScrollBar.getStyleClass().add("horizontal-scrollbar");
    horizontalScrollBar
        .visibleProperty()
        .bind(horizontalScrollBar.visibleAmountProperty().lessThan(1));
  }
Creates a {@link ScrollPane} with {@code content}.

@param content to be shown inside of the {@link ScrollPane}
workbenchfx-core/src/main/java/com/dlsc/workbenchfx/view/controls/PrettyScrollPane.java