Explain Event handling in AWT?

Answer Posted / niranjanravi

There are 2 ways to handle the events.
1.EventInheritance model
2.EventDelegation model.
EVentDelegation model has 2 advantages over
EventInheritance model.
First it enables event handling by objects other than the
ones that generates the events.It allows a clean separation
between components design and its use.
Secondly it performs much better in applications where many
events are generated. This performance improvement is due
to the fact that EventDelegation model doesn't need to
repeatable habndle unhandled events as is the case of
EventInheritance

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between overloading and overriding in java?

531


what is the purpose of "virtual"?

572


What are parsing rules?

507


what is the difference between yielding and sleeping? : Java thread

525


What is data member in java?

507






What are different types of classloaders?

591


Is java a utf 8 string?

535


Which is bigger double or float?

535


What is the indent key?

592


how to one war file class to another war file class?

1555


What is main in java?

516


How will you load a specific locale?

540


Does substring create a new object?

530


Explain the difference between jvm and jre?

564


What are the properties of thread?

504