Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (e.getSource() == Music1) {
- beethoven.stop();
- try {
- bkmusic = Applet.newAudioClip(new File("bkmusic.mid").toURI().toURL());
- if (bkmusic != null) {
- bkmusic.loop();
- }
- } catch (Exception f) {
- f.printStackTrace();
- }
- }
- if (e.getSource() == Music2) {
- bkmusic.stop();
- try {
- beethoven = Applet.newAudioClip(new File("beethoven.wav").toURI().toURL());
- if (beethoven != null) {
- beethoven.loop();
- }
- } catch (Exception f) {
- f.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment