This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
This article from OnJava might help you out a bit. And BTW, I found it as well as many others with a simple google search using Java Swing play wav file. [ March 31, 2006: Message edited by: Gregg Bolinger ]
Joined: Oct 24, 2005
I'm still having loads of trouble with this.
I'm trying to embed ONE audiofile into my gui to load on startup as the gui is initialised. I've tried an AudioClip interface method using the getDocumentBase() method when loading the sounds but I get an error saying 'cannot find symbol - getDocumentBase'
I've tried another way using the following code -
Inside my gui, don't get any errors but nothing happens when i call the method.
Can someone help me? [ April 05, 2006: Message edited by: Gregory Kodikara ]