Article View: borland.public.jbuilder.java.language
Article #7829Questions about the java event model (jdk1.2)
From: Francesco Milesi
Date: Thu, 17 May 2001 15:24
Date: Thu, 17 May 2001 15:24
19 lines
2109 bytes
2109 bytes
I know thet the actual java event model is the delegation model (that substituted the containment model) , based on a source target interaction. Here are the questions: 1. I read on a jguru course that AWT events are not garanteed to be dispatched in a definite order: is this true even in the jdk1.2 , so that if you register two listeners with the same source and the second need the result of the response of the first, this is not a good idea, because it is not guaranteed that the second listener will receive the event after the first one? 2. Is this true even for swing classes ? I was conviced that events are processed synchronously and that they are dispatched in the order listeners are registered, because the source take them out in order from the list (a Vector I think) and call the adhoc method of the listener (say actionPerformed, for example). 3. Why is there this difference (if there is any) between AWT and swing? Thanks in advance
Technical Details
Message-ID:
<3b03ed9a_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!cyclone-sf.pbi.net!64.244.79.11!sfo2-feed1.news.digex.net!intermedia!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4be102475d3f54d0,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-17 08:44:03 PST Reply-To: "Francesco Milesi" <francesco.milesi@inetconsulting.it> From: "Francesco Milesi" <francesco.milesi@inetconsulting.it> Newsgroups: borland.public.jbuilder.java.language Subject: Questions about the java event model (jdk1.2) Date: Thu, 17 May 2001 17:24:54 +0200 Lines: 21 Organization: Inet Consulting X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 195.120.34.206 Message-ID: <3b03ed9a_2@dnews> X-Trace: dnews 990113178 195.120.34.206 (17 May 2001 08:26:18 -0700) Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!feed2.onemain.com!feed1.onemain.com!cyclone-sf.pbi.net!64.244.79.11!sfo2-feed1.news.digex.net!intermedia!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews