File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: a little sound