Skip to content
Advertisement

Tag: mp3

Playing .mp3 and .wav in Java?

How can I play an .mp3 and a .wav file in my Java application? I am using Swing. I tried looking on the internet, for something like this example: But, this will only play .wav files. The same with: http://www.javaworld.com/javaworld/javatips/jw-javatip24.html I want to be able to play both .mp3 files and .wav files with the same method. Answer Java FX

Advertisement