Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Moving the scrollbar on tab to a specified field  RSS feed

 
Deboleena Chakraborty
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
This is with related to my first mail where i wanted the scrollbar to move on tab and focus on a specified field.
My panel is scrolling horizontally(that i wanted), but what is happening is that everytime the focus is going on the same place i.e. the dimension of the rectangle is same so even if i click on the third field the second field is only visible. Please help me.
Thanks & Regards
Deboleena
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Dimension of each field may be the same but the Rectangle of each is unique

so the scrollpane must scroll to the rectangle given to scrollRectToVisible.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!