This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Applets and the fly likes scrollbar move to bottom Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "scrollbar move to bottom" Watch "scrollbar move to bottom" New topic
Author

scrollbar move to bottom

Rakesh Kumar
Ranch Hand

Joined: May 30, 2006
Posts: 63
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

Joined: May 30, 2006
Posts: 63
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
 
GeeCON Prague 2014
 
subject: scrollbar move to bottom