Hi every one,
The applet does not stop if I put
this line in the init method. I have tried this.stop(); with no result.
try {
stop();
} catch (ThreadDeath e) {
e.printStackTrace();
System.out.println("What's the secret password?");
}
...........................
public void stop() {
stopPlaying(bgsound);
cdPlayer = null;
}
Chris Smith - 05 May 2004 19:38 GMT
Québec wrote:
> The applet does not stop if I put
> this line in the init method. I have tried this.stop(); with no result.
[quoted text clipped - 10 lines]
> cdPlayer = null;
> }
So what does "stopPlaying" do? I assume that's where you've written the
code to stop the applet?
(Incidentally, ThreadDeath is an exception related to Thread.stop, *not*
Applet.stop... and the former is deprecated for good reason and should
be avoided.)

Signature
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
Mark Haase - 05 May 2004 20:56 GMT
> Hi every one,
> The applet does not stop if I put
[quoted text clipped - 11 lines]
> cdPlayer = null;
> }
You don't call stop() yourself, the browser does.
|\/| /| |2 |<
mehaase(at)sas(dot)upenn(dot)edu
Roedy Green - 05 May 2004 22:57 GMT
>You don't call stop() yourself, the browser does.
see http://mindprod.com/jgloss/applet.html for a longer explanation.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.