• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSlider is not working.

 
Hui Zhao
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am going to plot a 2d, a combox and a JSlider.but JSlider is not working.
Please help me.
thanks
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see any code that "listens" for when the slider is changed and does something when that happens.

See Java Tutorial - How to Use Sliders and Java Tutorial - How to Write a Change Listener.
 
Hui Zhao
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry,please see my new code.

 
Hui Zhao
Ranch Hand
Posts: 116
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ignore it, i have gotten.
poster closed.
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just for the record, even though this was closed, i'm moving it to the more appropriate intermediate form
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic