Abstract Window Toolkit (AWT) Question:

How can a GUI component handle its own events?

AWT Interview Question
AWT Interview Question

Answer:

A component can handle its own events by implementing the required event-listener interface and adding itself as its own event listener.


Previous QuestionNext Question
What is the difference between the Font and FontMetrics classes?What interface is extended by AWT event listeners?