?
Solved

Can you get JSliders to set non whole numbers?

Posted on 2004-08-29
3
Medium Priority
?
190 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 200 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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:
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
Course of the Month14 days, 4 hours left to enroll

800 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