Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to move scrollbars dynamically in a scrollpane?  RSS feed

 
ravikumar sengodan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
table.scrollRectToVisible(table.getCellRect([..row number..],0,true));}};
 
ravikumar sengodan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Michael,

thanks, i tried ur code. Its working fine.

bye,
S.Ravikumar
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!