Event, Event Driven Program, Event Source, Listener.

Q13.Explain the following:

  1. Event
  2. Event Driven Program
  3. Event Source     
  4. Listener.

Ans.

  1.  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.
  2. Event-Driven Program: A program that is oriented around a GUI responding to events from the user is called event-driven.
  3. Event Source: The event source is the GUI component in which the event occurred.
  4. Listener: A listener is an object that is “waiting” for event to occur and can respond in some way when it does.

 

Advertisements

One thought on “Event, Event Driven Program, Event Source, Listener.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s