How to programmatically scroll a JScrollPane to a specific area?

Posted by Jonas on Stack Overflow See other posts from Stack Overflow or by Jonas
Published on 2010-05-28T11:06:24Z Indexed on 2010/05/28 11:11 UTC
Read the original article Hit count: 246

I have a JScrollPane that contains a big JTable. If I programmatically select a row in the JTable, how can I programmatically scroll the scrollpane so the selected row is visible?

i.e if row with index 85 is selected, how do I scroll so that row is visible?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing