Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Music  RSS feed

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do you go about adding an AudioClip to your GUI?

AudioClip current = new AudioClip(url);


where:


url = new URL ("file","localhost","DiaryOfJane.wav");

???

Justin
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here's the simple version - but look at MediaTracker

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!