A ContainerEvent is generated when a component is added to or removed from a container.There are two typed of container events.The ContainerEvent class defines int constants that can be used to identify the COMPONENT_ADDED and COMPONENT_REMOVED .They indicate that a component has been added to or removed from the container.
Container Event is a subclass of component Event and has this constructor
here src is a reference to the container that generated this event.The type of the event is specified by type and the component that has been added to removed from the container is comp
Container Event is a subclass of component Event and has this constructor
ContainerEvent(Component src,int type,Component comp)
here src is a reference to the container that generated this event.The type of the event is specified by type and the component that has been added to removed from the container is comp
Container geContainer()
Component getChild()
0 comments:
Post a Comment