Link to home
Start Free TrialLog in
Avatar of prain
prainFlag for United States of America

asked on

JScrollBar Question

Hello,

I have a requirement in my SW development to create a scrollbar that has a min = 0.00, max = 100.00 and increments must be
floating point values with 2 decimal places. Currently ion javadocs I see scrollbars that work only for intergers. Do anyone know
where I can find this or can anyone throw some light to create one like that?

-prain
Avatar of enachemc
enachemc
Flag of Afghanistan image

can't you make your scorll bar work in ranges 0-10 000 and instead of increase with two decimal digitis ... increase with this multiplied by 100 ? This results only in integers being used.
Avatar of prain

ASKER

No I cannot do that. This situation is different, and the user MUST see the incremented value in 2 decimal places.
That's our requirement. The Max MUST be 100.00  (a floating point) and the min MUST be (0.00).  Increments or
decrements MUST be in two decimal places. That's the requirement we have.
ASKER CERTIFIED SOLUTION
Avatar of enachemc
enachemc
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of prain

ASKER

Ok. I think I get your point. Let me try this out and get back with you. Nice insight.
Avatar of prain

ASKER

Thanks. Works Well.