• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

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
0
prain
Asked:
prain
  • 3
  • 2
1 Solution
 
enachemcCommented:
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.
0
 
prainAuthor Commented:
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.
0
 
enachemcCommented:
how will the user know what values the scrollbar uses ? you can do the transformations required. Display a 30,12 and use a 3012 value.
0
 
prainAuthor Commented:
Ok. I think I get your point. Let me try this out and get back with you. Nice insight.
0
 
prainAuthor Commented:
Thanks. Works Well.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now