Component Event Class Assignment Help

Assignment Help: >> Components - Component Event Class

Component Event Class:

A Component Event is produced when the size position or visibility of a component is modified. There are four categories of component events. A ComponentEvent class declares integer constants which can be used to identify them. Constants and the meanings are displays here.

COMMPONENT_MOVED           The component was moved.

COMPONENT_RESIZED           The component was resized.

COMPONENT_HIDDEN            The component was hidden

COMPONENT_SHOWN             A component became visible.

ComponentEvent has this constructor:

ComponentEvent(Component src, int type)

Above, src is a reference to the object that produced this event. A type of the event is specified through type.

ComponentEvent is the superclass either indirectly or directly of KeyEvent, ContainerEvent, MouseEvent, FocusEvent, and WindowEvent.

A getComponent() method returns the component which produced the event. It is displays here: Component getComponent()

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd