• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to move scrolls programatically?  RSS feed

 
Aurel Sorin Cirstoiu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a JScrollPane. I want to move its scrolls programatically. I tried:
myobj.getHorizontalScrollBar.setValue()
with no success.
Please help me.
 
Jon Dornback
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what value are you using in the setValue(int) method? the scale is not always from 1 to 100: use getMinimum and getMaximum to determine what the range is.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!