View RSS Feed

Java AWT

ComponentEvent

Rate this Entry
by , 03-04-2012 at 05:30 PM (478 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:

InputEvent
WindowEvent
FocusEvent
ContainerEvent

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.

ComponentAdapter
ComponentListener

Given above get registered to the component so that to get events by the help of method addComponentListener

Submit "ComponentEvent" to Facebook Submit "ComponentEvent" to Digg Submit "ComponentEvent" to del.icio.us Submit "ComponentEvent" to StumbleUpon Submit "ComponentEvent" to Google

Categories
Event

Comments