• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jslider thumb movement on clicking the component

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a jslider values 100-2000
when i click on the component the thumb moves by 190. I want to change this behaviour. Is there any way by which i can force the value by which the thumb/knob will move on clicking on the component?

Thanks
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depending on how you are using the value obtained from the slider you can usually get the behavior you want by clever choice of the limits (which can be very different than the processed value you send out from your ChangeListener). When you find the right combination, if the labels don't say what you want, you can make up your own labels in a Hashtable and install them with setLabelTable.
 
reply
    Bookmark Topic Watch Topic
  • New Topic