Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a little sound

 
ezekiel diligene
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic