This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JScrool.getMaximum/getValue problem= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JScrool.getMaximum/getValue problem=" Watch "JScrool.getMaximum/getValue problem=" New topic

JScrool.getMaximum/getValue problem=

Jimmy Nilsson

Joined: Sep 25, 2004
Posts: 26

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?

subject: JScrool.getMaximum/getValue problem=
Similar Threads
Positioning scroll bar
Problem with the date 2005-07-14
Make it abled to scrool Horizontal
Force Scrool on JTextPane?
automatic scrool to the Textarea