1,105,197 Community Members

Adding sound in java

Member Avatar
AirGear
Junior Poster in Training
62 posts since Jul 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
0
 

I want to add sound in my Java program. I searched in Internet, and what I found was only how to add sound to java applet. Isn't there any way to insert sound into the desktop application java?

Thanks in advance
Regards,
AG

Member Avatar
kramerd
Posting Pro in Training
404 posts since Sep 2010
Reputation Points: 29 [?]
Q&As Helped to Solve: 75 [?]
Skill Endorsements: 0 [?]
 
0
 

According to this web site, you need to import the sun.audio package. Haven't tried this myself, but maybe you can get it to work?

Here's another resource from Oracle that's much more in-depth.

Here's one more link which may help.

BTW, my search terms in Google were "java add sound application" to find the above links.

Member Avatar
AirGear
Junior Poster in Training
62 posts since Jul 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
0
 

@kramerd : thanks a lot for your reply. I have checked all 3 of them, and I still found that those work in applet, just like what I found when I searched in google :( Is there any other ways to add sounds into non-applet app? or can I apply the applet methods for the non-applet?
Thanks again :)

Member Avatar
AirGear
Junior Poster in Training
62 posts since Jul 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
0
 

ohh sorry,, the first link gave the way to play sound in common Java app :D yoohoo!! thanks a lot dude! I do appreciate your help :)

Question Answered as of 3 Years Ago by kramerd
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article