Registration is the process whereby one object can ask another object (or itself) to notify it when it receives a particular kind of event. It can also ask it to stop notifying it.
Registering and unregistering is done through the
Component
class or a class derived from it. It includes methods of the formadd
EventType
Listener
andremove
EventType
Listener
, where EventType isMouseMotion
or some other event type. Thus,addActionListener
andaddMouseMotionListener
are examples.