This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scrollbar move to bottom

 
Rakesh Kumar
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,
I am using one Jtable in row also scrollbar .And requirement is while adding each row the table row and scroll bar will go to last row automatically.
I atried below code.

m_jTable.scrollRectToVisible(m_jTable.getVisibleRect());

m_pane.scrollRectToVisible(m_pane.getVisibleRect());

But some times the scrobar and bottom has a very small gap.
If anybody has any idea please share with me .

Rakesh
 
Rakesh Kumar
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi dear friends,
I found solution for this.

just implement adjustmentlistener for vertical scroll bar and set the visible rect method in side the adjustment valuechanged(event e){} method.It will be handled.
Thanks
rakesh
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic