Solved

Can you get JSliders to set non whole numbers?

Posted on 2004-08-29
3
187 Views
Last Modified: 2010-03-31
I would like to set up a JSlider to allow you to pick a number between 0.000000 and 100.000000.  

I can do approximately the same thing by using 0-100000000 and just dividing by 1000000 and displaying the divided number to the user, but is there a way to do it properly?
0
Comment
Question by:Dawkins
[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 Comments
 
LVL 3

Expert Comment

by:InNoCenT_Ch1ld
ID: 11925871
sure
0
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 11927524
no it only support int's.
0
 
LVL 9

Expert Comment

by:OBCT
ID: 11928035
You could create a subclass of JSlider and implement it yourself.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

733 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