音乐为什么不播放?
package 播放音乐;import java.applet.Applet;
import java.applet.AudioClip;
import java.awt.Graphics;
@SuppressWarnings("serial")
public class SoundDemo extends Applet{
public void paint(Graphics g){
AudioClip audioclip=getAudioClip(getCodeBase(),"杜歌-兄弟难当.mp3");
g.drawString("Sound Demo", 5, 15);
audioclip.loop();
}
}