File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes sounds through jpanel? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "sounds through jpanel?" Watch "sounds through jpanel?" New topic

sounds through jpanel?

fred baby

Joined: Jul 09, 2002
Posts: 7
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

Joined: Jul 11, 2001
Posts: 14112
Take a look at

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
subject: sounds through jpanel?