aspose file tools*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to move scrollbars dynamically in a scrollpane?