Javax Code for Playing Music: OUTPUT: ________________________________________________________________ Just Copy and Paste and Change the variable name respectively: ________________________________________________________________ ________________________________________________________________ Buttons: 1. jButton1 : Open Music File 2. jButton2 : Play 3, jButton3 : Stop 4. jButton4 : Pause ________________________________________________________________ import java.io.File; import java.io.IOException; import java.net. MalformedURLException; import javax.sound.sampled. AudioInputStream; import javax.sound.sampled. AudioSystem; import javax.sound.sampled.Clip; import javax.sound.sampled. LineUnavailableException; import javax.sound.sampled. UnsupportedAudioFileException; public class Music extends javax.swing.JFrame { /** ...
Get Started... Get Addicted...
Comments
Post a Comment