Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sounds through jpanel?

 
fred baby
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im writing a program that is mainly jpanel based. upon the click of a button, i do various things and i would like one of them to be playing a sound. is there anyway to use Applet's AudioClip class with a JPanel? i've tried just using a dummy/temp applet so that i can call getAudioClip, but that locks up the machine...ideas? thanks.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at http://java.sun.com/j2se/1.3/docs/guide/sound/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic