title: How to Play/Pause a mp3 file using the JavaZOOM JLayer library?
body: <p>How would I add a Play/Pause button to the following code?</p>
  
  <pre><code>import javazoom.jl.player.Player;
  
  try{
      FileInputStream fis = new FileInputStream("mysong.mp3");
      Player playMP3 = new Player(fis);
      playMP3.play();
  }
  catch(Exception exc){
      exc.printStackTrace();
      System.out.println("Failed to play the file.");
  }
  </code></pre>