如何向以下代码添加播放/暂停按钮?importjavazoom.jl.player.Player;try{FileInputStreamfis=newFileInputStream("mysong.mp3");PlayerplayMP3=newPlayer(fis);playMP3.play();}catch(Exceptionexc){exc.printStackTrace();System.out.println("Failedtoplaythefile.");} 最佳答案 您需要使用AdvancedPlayer类而不仅仅是Pl