• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

JScrool.getMaximum/getValue problem=

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey

I need to get the maximum posible scrool position of a JScrollbar

The getMaximum() simes to work fine!

But the getVlaue is not as good. When i print out all the getvalues as soon as i move the scrool i have notice that when the scrool is in the top, the value is never 0, insted its 10-20 ?

And when the Scrool bar is at the bottom it shold be the sam value that the getMaximum, but insted there can be a big diffrent, say Maximum = 5300 and the value at the buttom is about 4200-4600 ??

Is there any way to get a more specified values for the scrollers position?

//SnowJim
reply
    Bookmark Topic Watch Topic
  • New Topic