Programmatically Scroll a JTable Inside a JScrollPane
I searched the forums and couldn't find an answer to my question. I have a JTable instantiated inside of a JScrollPane. I have implemented a search on one of the columns. It works just fine. I am able to find all the correct rows and highlight them one by one. My problem is -- how to scroll so that the selected row is visible.
I found scrollRectToVisible on ViewPort, but I can't work all the way back to the selected row. Can anyone help? Thank you very much!