• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSlider Events Question

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a series of JSliders. And on the sliding of these sliders I have things that happen.
When I use the mouse to slide the sliders, everything works fine. However, if I use the arrow keys to move the sliders up and down, the stateChanged event never happens.
Also, I have text fields and I can just enter the numeric values for the Sliders. When I press enter I do a slider.setValue(int). And again, the stateChanged event never happens.
Do I have to register special listeners for these 2 events that aren't happening by default?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!