Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

JScrollBar Question

Posted on 2006-11-21
5
Medium Priority
?
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

688 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