I have a gridpane in a scrollpane. One gridcell has the size of the scrollpane so you have to scroll to see the other gridcells. Now I want to scroll automatically to a explicit grid cell.
Does anyone have an idea how I can do that?
I have a gridpane in a scrollpane. One gridcell has the size of the scrollpane so you have to scroll to see the other gridcells. Now I want to scroll automatically to a explicit grid cell.
Does anyone have an idea how I can do that?
Assuming all the grid cells are the same size (which is implied by "one gridcell has the size of the scrollpane"), and you know how many rows and columns there are in the grid pane, you should be able to do something like this:
That may need a bit of adjustment if you have borders etc.