Solved

Can you get JSliders to set non whole numbers?

Posted on 2004-08-29
3
182 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
3 Comments
 
LVL 3

Expert Comment

by:InNoCenT_Ch1ld
Comment Utility
sure
0
 
LVL 92

Accepted Solution

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

Expert Comment

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

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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 learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now