The code you posted works. Repackage it in another method and it should work there.
Why do you want to muck around with code that works. Leave it alone.
Type: Posts; User: Norm
The code you posted works. Repackage it in another method and it should work there.
Why do you want to muck around with code that works. Leave it alone.
This project is past your knowledge. You need to learn more about how to write classes and methods.
Save this project for later. Go back and work on the basics.
The code plays sounds OK. The problem is the way the code is inside of an inner class.
You could copy the code out of your post on this thread:
http://www.javaprogrammingforums.com/whats-wrong-my-code/13127-adding-sound-program.html#post53241