Monday 14 November 2016

JAVA Event Listener



 A listener is an object that is notified when an event occurs.
 It has two major requirements:
o   First, it must have been registered with one or more sources to receive notifications about specific types of events.
o   Second, it must implements methods to receive and process these notifications.
 The methods that receive and process events are defined in a set of interfaces found in java.awt.event. For example, the MouseMotionListener interface defines two methods to receive notifications when the mouse is dragged or moved.

No comments:
Write comments