On Mar 8, 3:05 am, "PS" <ecneserpeg...@hotmail.comwrote:
<t...@cfl.rr.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
Hello,
I've done some Java in the past. I don't remember ever having to worry
about updating a control from a thread other than the one that created
it. In C# you have to jump throught a bunch of hoops to with Invoke/
BeginInvoke or use tricks with BackgroundWorker. I don't remember
having to do this with Java. Java runs is in a "managed" environment
like C#. Is it because Swing is thread safe?
A quick google shows that Swing is primarily not thread safe. You were
probably just lucky in the past that nothing went wrong.
http://groups.google.com/group/comp....e_thread/threa...
PS
TIA
A reason why UI Components are not thread safe are because, any update
to UI components should not be blocked by a running thread as a block
on UI update would bring about a slow, non-responsive UI. This
violates the design goal of a Graphical User Interface.