Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple syntax for applet insertion: still not quite there




On Mar 29, 2006, at 8:30 PM, Xeno Campanoli wrote:

I got the following suggested sleep applet:


It wasn't much more than a suggestion. I just checked on what on you asked about and this seemed to work.

 

runner = new Thread(this);

runner.start();


This is very bad. I was more used to normal applets which I think do need some kind of thread to run off of. This doesn't seem to need one, I tested last night with these two lines commented out and it runs fine without them. A wrong idea that didn't get deleted in testing. You do not want to spawn a new thread every time you pause, especially if you are going to do a lot of it. Please remove these if you plan on doing anything at all based on what I sent you.

And after fiddling with it the applet tag no longer bombs out my page:
...

This seems all right, but somehow I’m still not getting the sleep. 


 I modified mine to include the parameter you have added for the duration in the sleep method, I am not sure what page crash mine had for you?  Other than that it still seems to work fine for me with Safari and this set up.


Mike Hall        mikehall at spacestar dot net



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Simple syntax for applet insertion: still not quite there (From: "Xeno Campanoli" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.