posted 20 years ago
I'm not totally sure, but I think that your problem may be that you are using getValue() on scrollbar2, rather than getMaximum().
You certainly don't need most of those casts to "double". They aren't doing anything.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.