Meaningless Drivel is fun!
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes AWT event delegation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "AWT event delegation" Watch "AWT event delegation" New topic

AWT event delegation

Mike Cunningham
Ranch Hand

Joined: Nov 14, 2000
Posts: 130
I read that you cannot combine event delegation with event enabling. The page before that statement mentioned that if you use enableEvents, the processXXXEvent() notification happens before any listener notification that might also need to happen, and then it notifies the listeners. The second statement seemed to suggest that they can be combined in the same class. Any clarification would be appreciated.
Thanks in advance.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
You can combine event delegation and event enabling. There is an errata in the Passport Cert book in the Travel Advisory on page 347.
It should have read
You cannot combine event delegation and event enabling with the original JDK1.0 target event model.

However the Advisory really should have been removed to avoid having to explain the original target event model - which should not be used anymore.
Sorry for the confusion.
I agree. Here's the link:
subject: AWT event delegation
It's not a secret anymore!