Abstract Window Toolkit (AWT) Question:

How can a GUI component handle its own events?

Tweet Share WhatsApp

Answer:

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

Download AWT PDF Read All 41 AWT Questions
Previous QuestionNext Question
What is the difference between the Font and FontMetrics classes?What interface is extended by AWT event listeners?