This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Java in General and the fly likes JSlider is not working. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JSlider is not working." Watch "JSlider is not working." New topic

JSlider is not working.

Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
I am going to plot a 2d, a combox and a JSlider.but JSlider is not working.
Please help me.
marc weber

Joined: Aug 31, 2004
Posts: 11343

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.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
sorry,please see my new code.

Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
ignore it, i have gotten.
poster closed.
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
just for the record, even though this was closed, i'm moving it to the more appropriate intermediate form

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
I agree. Here's the link:
subject: JSlider is not working.
It's not a secret anymore!