How can a GUI component handle its own events

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

Showing Answers 1 - 1 of 1 Answers

By implementing the required event listener interface a gui component can handle it own event.In order to keep a track of all events associated with it uses its own event listener.A program catches and processes GUI events by subclassing GUI components and override either action() or handleEvent() methods.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions