Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

how do u incorporate sound on a java program in that on mouse click of a button it plays the sound?

OpenStudy (anonymous):

Audioclip clip[] = new AudioClip[number]. clip[0] = getAudioClip(getDocumentBase(),"file name and path" ); put this under the mouse event for MouseClick() Also use a Thread thread; And make methods for start(), stop(), run() <-- "Will just be a loop of the sound"

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!