播放不了音乐。try{
File file=new File("2.midi");
AudioClip sound=Applet.newAudioClip(file.toURL());
sound.play();
}catch(MalformedURLException e){
}
File file=new File("2.midi");
AudioClip sound=Applet.newAudioClip(file.toURL());
sound.play();
}catch(MalformedURLException e){
}
有没有更好的方法?有的话,请指教。