Article View: borland.public.jbuilder.java.swing
Article #9795Re: To thread or not to thread?
From: Ken Sprague
Date: Sat, 29 Jan 2000 00:00
Date: Sat, 29 Jan 2000 00:00
11 lines
1054 bytes
1054 bytes
Brian, Just realized I misspoke. The invokeLater() and invokeAndWait() methods are invoked by the GUI thread, their main purpose is to synchronize access to Swing components (from other threads), since Swing is not thread-safe. You can do the necessary processing in a separate thread, then call invokeLater() (with a Runnable) to perform the GUI update. Ken
Technical Details
Message-ID:
<86v8tc$32n5@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<85oo41$9ov24@bornews.borland.com> <86v7qc$32m7@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e10483a2298b307b X-Google-Attributes: gid111d45,public From: "Ken Sprague" <ksprague@email.msn.com> Subject: Re: To thread or not to thread? Date: 2000/01/29 Message-ID: <86v8tc$32n5@bornews.borland.com> X-Deja-AN: 579221695 Content-Transfer-Encoding: 7bit References: <85oo41$9ov24@bornews.borland.com> <86v7qc$32m7@bornews.borland.com> Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal X-Priority: 3 Content-Type: text/plain; charset="iso-8859-1" Mime-Version: 1.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Newsgroups: borland.public.jbuilder.java.swing