You need to find the coordinates of this inner node inside the content and adjust ScrollPane vValue and hValue .
See the ensureVisible() method in the following small application:
public class ScrollPaneEnsureVisible extends Application { private static final Random random = new Random(); private static void ensureVisible(ScrollPane pane, Node node) { double width = pane.getContent().getBoundsInLocal().getWidth(); double height = pane.getContent().getBoundsInLocal().getHeight(); double x = node.getBoundsInParent().getMaxX(); double y = node.getBoundsInParent().getMaxY();
Sergey Grinev
source share