JSlider that works with float values.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sankar_prasad
Posted On:   Thursday, September 4, 2003 03:20 AM

Currently JSlider works only with integers. Please let me know how to get and set values that are floats with JSlider.

Re: JSlider that works with float values.

Posted By:   Stephen_McConnell  
Posted On:   Thursday, September 4, 2003 04:57 AM

You probably have to convert the float to an int...


If the values to the right of the decimal point are important in your JSlider, you probably have to decide how many significant figures you need and multiply your float by a multiple of 10 to push it out there... then, cast it to an int.


Stephen McConnell

About | Sitemap | Contact