|
-
July 28th, 2010, 11:29 AM
#4
Re: JSlider...
Why is the slider part of the Ball class, it has nothing to do with this class.
Your problem is you are adding the slider from a ball but then you are creating another ball which you are doing something with. The new ball has it's own slider which is a different slider to the one you have added to the screen and hence it's stateChanged() method is never being called.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|