This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to move scrollbars dynamically  in a scrollpane? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to move scrollbars dynamically  in a scrollpane?" Watch "how to move scrollbars dynamically  in a scrollpane?" New topic
Author

how to move scrollbars dynamically in a scrollpane?

ravikumar sengodan
Greenhorn

Joined: Sep 16, 2005
Posts: 2
hi,

my scrollpane having a table. I want to move the scrollbars in the scrollpane and set the focus in a particular row in the table. how to do that?

suggestions needed

thanks
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
table.scrollRectToVisible(table.getCellRect([..row number..],0,true));}};
ravikumar sengodan
Greenhorn

Joined: Sep 16, 2005
Posts: 2
hi Michael,

thanks, i tried ur code. Its working fine.

bye,
S.Ravikumar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to move scrollbars dynamically in a scrollpane?
 
Similar Threads
JTable in a JScrollPane : no scrollbars!
JTable-JScrollPane
JTable
How to set panel according to the value of Horizontal scrollbar adjustment
how to change the color of scrollbars