by, 03-04-2012 at 04:30 PM (442 Views)
The ComponentEvent is known as a low leveled event which indicates
1. Changed Size
2. Component Moved
3. Change Visibility
For sake of notifications, the component events are required. Resizing as well as component moves are handled automatically by AWT. Layout of GUI properly works without taking any special care for all events.
For other events, this is considered to be a base class:
This class indicates certain changes that take place in visibility, size or position of the component.
When component is resized, moved or visible, component object creates low level events. Event gets passed to 1 of them.
Given above get registered to the component so that to get events by the help of method addComponentListener