• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AWT event delegation

 
Mike Cunningham
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike,
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic