Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / May 2004

Tip: Looking for answers? Try searching our database.

stop does not stop the applet

Thread view: 
Qu?bec - 05 May 2004 12:51 GMT
  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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.