hi, was wondering if anyone could help me with adding sound to a button so that when its clicked it basically makes a sound/plays a short beep sound file???
also do i import a sound library?
cheers :-)
Printable View
hi, was wondering if anyone could help me with adding sound to a button so that when its clicked it basically makes a sound/plays a short beep sound file???
also do i import a sound library?
cheers :-)
do you have a sound library already? In JAR format is it?
Also what IDE you are using? If using Eclipse you can go to: Windows->preferences. Expand: java -> Classpath variables. Then click on New... and specify the path your JAR file is located. You can put in any name though.
After that (Still inside Eclipse), go to the project where you need to import this library, right-click -> properties. Then go to: Java Build Path -> Library tab. Click on add variable and locate the JAR file you added just now. Done!