Article View: borland.public.jbuilder.java.language
Article #18032Threads and GUI components
From: Max Polk
Date: Mon, 24 Aug 1998 00:00
Date: Mon, 24 Aug 1998 00:00
18 lines
1288 bytes
1288 bytes
I read somewhere that, for the most part, Swing was not Thread-safe. Naturally, I need some sort of idea of what I should avoid, what will get me into problems, and so forth. Where is anything about GUI/thread processing and problems documented? Nowhere in the Java Tutorial from Sun. The threads book from Java doesn't seem to focus on the combination of mixing GUI with threads. Is every GUI processing method called from a new thread you just started supposed to be synchronized to avoid accessing a graphical component from two threads? In particular, what happens when you update a graphical component from two threads at the same time? If a graphical component is being updated and you alter the component, what happens? Is it safe? Should we be avoiding this? Can you exit when graphical updates are occurring? Who knows anything about this?
Technical Details
Message-ID:
<MPG.104b7c22366fe2f798969e@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,61c43b6b3447d80d,start X-Google-Attributes: gidf74b3,public From: none@none.com (Max Polk) Subject: Threads and GUI components Date: 1998/08/24 Message-ID: <MPG.104b7c22366fe2f798969e@forums.borland.com> X-Deja-AN: 384268824 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language