• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSlider value increasing or decreasing?

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there an easy way to determine if the value of a JSlider is increasing or decreasing? Or do I need a variable and determine whether the next value is < or > and do it that way?
Thanks.
 
Fuqiang Zhao
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can overide the method:
JSlider.setValue(int)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!