Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

get JScrollPane to scroll to highlighted row in JTable  RSS feed

 
Di Shoe
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a JTable in a JScrollPane and I would like the scrollpane to scroll down when I hightlight a row in a table like this:

Above, x keep getting incremented so the highlighted cell keep moving down.
For auto scrolling, I tried to do this:

and this:

but none of these caused the scrollbar to scroll when the hightlighted cell kept moving down and out of sight.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!