This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes can we have audio clips in JFrame? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can we have audio clips in JFrame?" Watch "can we have audio clips in JFrame?" New topic
Author

can we have audio clips in JFrame?

nurichan
Greenhorn

Joined: Mar 23, 2005
Posts: 7
i'm writing this program in JFrame.. then i was browsing java.sun.com n happened to see that it's possible to have audio clips in applets. so am now wondering can i have music for my JFrame? or is it only for applets?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24168
    
  30

That method is only available for applets, but the Java Media framework (JMF) is a separate standard API that can play music -- see http://java.sun.com/jmf .


[Jess in Action][AskingGoodQuestions]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"Nurichan"

Please click on the My Profile link and change your name to match our nming policy of using your real first and real last names.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Don't get me started about those stupid light bulbs.
 
subject: can we have audio clips in JFrame?
 
Similar Threads
Audio flag of timer
Need help for storing data
How to add Audio and Video Clips
Opening files from applet
Black Tape For A Blue Girl