Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scroll bar issue

Rakesh Kumar
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
I am using jtable in scrollpane.I am adding rows in table and wheever we add a row , table will point last added row and scrollbar will go to last point.
i used below 2 ways to make i scrollbar down wheever a new row comes.
1. m_jTable.scrollRectToVisible(m_jTable.getCellRect(m_jTable.getRowCount(),2, false));

But it is working some times an other time it fails.
If you guys have any idea please share with me ASAP.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic