JavaFx: In TreeView Need Only Scroll to Index number when treeitem is out of View
问题 I need to do a simple thing. I have a large TreeView. and a menu item Next and Previous. on Next I have to select next Tree Item. Tree List Look like this -Root(set visible hide is true for root) --Parent 1 ----Child 1 ----Child 2 ----Child 3 --Parent 2 ----Child 1 ----Child 2 Now By pressing Next or previous menu item i call myTreeView.getSelectionModel().clearAndSelect(newIndex); By This I have manage to select next item and by myTreeView.getSelectionModel().scrollTo(newIndex) i have manage