Container.addImpl

Container.addImpl

Class Overview | Class Members | This Package | All Packages

Syntax
protected void addImpl( Component comp, Object constraints, int index )
Parameters
comp
the component to be added.
constraints
an object expressing layout contraints for this component.
index
the position in the container's list at which to insert the component, where -1 means insert at the end.
Description
Adds the specified component to this container at the specified index. This method also notifies the layout manager to add the component to this container's layout using the specified constraints object.

This is the method to override if a program needs to track every add request to a container. An overriding method should usually include a call to the superclass's version of the method:

super.addImpl(comp, constraints, index)

See Also
add, add, add, LayoutManager