diff --git a/cicaprojekt/Display.java b/cicaprojekt/Display.java index 454138a..81adacc 100644 --- a/cicaprojekt/Display.java +++ b/cicaprojekt/Display.java @@ -3,6 +3,7 @@ package cicaprojekt; import java.awt.*; import java.io.File; import java.io.IOException; +import java.net.URL; import java.util.ArrayList; import java.util.List; @@ -33,7 +34,7 @@ public class Display extends JPanel{ public void startMusic() { try(AudioInputStream ais = - AudioSystem.getAudioInputStream(new File("tomboy2.wav"))) { + AudioSystem.getAudioInputStream(new URL("http://users.hszk.bme.hu/~bb1376/tomboy.wav"))) { clip = AudioSystem.getClip(); clip.open(ais); clip.start();