Solved

JScrollBar Question

Posted on 2006-11-21
5
217 Views
Last Modified: 2010-03-31
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
Comment
Question by:prain
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:enachemc
ID: 17987119
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
 

Author Comment

by:prain
ID: 18029038
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
 
LVL 12

Accepted Solution

by:
enachemc earned 125 total points
ID: 18029055
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
 

Author Comment

by:prain
ID: 18033283
Ok. I think I get your point. Let me try this out and get back with you. Nice insight.
0
 

Author Comment

by:prain
ID: 18050168
Thanks. Works Well.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 43
JList custom Cell Renderer refresh 15 56
ForLoop Example 3 48
Opening PDF on button click and fill new document 2 37
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question