Explain Event handling in AWT?
Answer / 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 |
Which category the java thread do fall in?
How arrays are stored in memory in java?
Explain java code for recursive solution's base case?
Do I need java for windows 10?
What is the method to expand and collapse nodes in a jtree?
What is polymorphism java example?
Explain static nested classes ?
How do you sort a set in java?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
What is quick sort in java?
What does this() represent, and how is it used in Java?
how many design pattern r there? and wht design pattern u use and why ?