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: Getting thread info from sub-threads.




On Aug 21, 2006, at 2:27 PM, bsd5tu1 wrote:

invokeAndWait()

Someone can correct me if wrong here. Not a Swing guru.
But if you are talking about SwingUtilities I believe this means the code will run on the dreaded EDT - event dispatcher thread, AKA the main thread. So this means the code will be scheduled to run on the EDT thread, in the meantime the current thread will stop and wait until the invoke completes. Possibly dangerous if you are on another event related (current) thread, you might slow down or lock up the GUI/application, the invokeLater method - running asynchronously, is more usual I think.



Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



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: 
 >Getting thread info from sub-threads. (From: bsd5tu1 <email@hidden>)
 >Re: Getting thread info from sub-threads. (From: Michael Hall <email@hidden>)
 >Re: Getting thread info from sub-threads. (From: bsd5tu1 <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.