Q13.Explain the following:
- Event Driven Program
- Event Source
- Event: An Event is an object that represents some occurrence.Often events correspond to user actions such as pressing a mouse button, selecting an item from a menu, or typing in a text field.
- Event-Driven Program: A program that is oriented around a GUI responding to events from the user is called event-driven.
- Event Source: The event source is the GUI component in which the event occurred.
- Listener: A listener is an object that is “waiting” for event to occur and can respond in some way when it does.