This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes a little sound Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "a little sound" Watch "a little sound" New topic
Author

a little sound

ezekiel diligene
Greenhorn

Joined: Dec 01, 2005
Posts: 5
I have a gui using the jframe template and am wondeing if it is at all possible for me to add a short sound to file inside an introduction screen on it own.


I would be very greatefull for any results thanks


b.notes
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Have you looked at the API docs for Applet.java. There is a new static method called newAudioClip that will let you load an AudioClip from a URL. If you have a local file, I believe there is a method in File that lets you convert a File to a URL.
 
Consider Paul's rocket mass heater.
 
subject: a little sound
 
It's not a secret anymore!