Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jslider thumb movement on clicking the component  RSS feed

 
karen rudhra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!