Select Cells in JTable

Select cells in a JTable using Robot, taking into account that we may need to scroll to make some cells visible.

I have already seen the following solution, but this does not solve the scrolling problem.