backgroundMusic.stop

Posted on March 26th, 2011 in Troubleshooting by admin

AudioClip – nothing pointer exception?

Question:
Now i am edition any java module formula which will work an audio uncover when We work it we all a time acquire a nothing pointer exception

this is essentially a signal:

scan caffeine.applet.AudioClip;
import javax.swing action.JApplet;

open open march BackgroundMusic expands JApplet

in isolation AudioClip backgroundMusic;

open BackgroundMusic()
try
backgroundMusic = getAudioClip(getDocumentBase(), “/sounds/backgroundMusic.wav”);
locate (Exception e)
System.out.println(e.getLocalizedMessage…

open blank play()
backgroundMusic.loop();

open blank stop()
backgroundMusic.stop();

open immobile blank main(String args[])
BackgroundMusic bm = latest BackgroundMusic();
bm.play();

I’m certain which a sold record march will be proper, but My partner as well as i even right divided can’t find divided because is it not working.

may anybody support me to finding a emanate we need to?

Answer:


Article Source: レジストリクリーナー

Post a comment