Re: paint program using canvas
Lew wrote:
Lew wrote:
Graphic events should occur only on the EDT.
Knute Johnson wrote:
Swing yes, AWT not necessary.
Are you sure about that?
<http://weblogs.java.net/blog/kgh/archive/2004/10/multithreaded_t.html>
indicates that the issue is universal to all GUIS.
We went through this with AWT. AWT was initially exposed as a normal
multi-threaded Java library. But as the Java team looked at the
experience with AWT and with the deadlocks and races that people had
encountered, we began to realize that we were making a promise we
couldn't keep.
Note also that the events dispatched on the "Swing" Event Dispatch
Thread are all AWT events. In fact, Swing is itself built on AWT.
I'm not saying you're wrong. I'm just curious how AWT is immune to a
phenomenon that seems to grip every other GUI invented, for Java or
otherwise.
And why do Sun engineers say that AWT cannot keep the multithreaded
promise?
I've yet to see Sun recommend that you keep all AWT GUI actions on the
EDT like they do for Swing. It's possible I've missed it somewhere though.
--
Knute Johnson
email s/nospam/knute2009/
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access