All Packages Class Hierarchy This Package Previous Next Index
Interface java.awt.LayoutManager2
- public interface LayoutManager2
- extends LayoutManager
Defines an interface for classes that know how to layout Containers
based on a layout constraints object.
This interface extends the LayoutManager interface to deal with layouts
explicitly in terms of constraint objects that specify how and where
components should be added to the layout.
This minimal extension to LayoutManager is intended for tool
providers who wish to the creation of constraint-based layouts.
It does not yet provide full, general support for custom
constraint-based layout managers.
- See Also:
- LayoutManager, Container
-
addLayoutComponent(Component, Object)
- Adds the specified component to the layout, using the specified
constraint object.
addLayoutComponent
public abstract void addLayoutComponent(Component comp,
Object constraints)
- Adds the specified component to the layout, using the specified
constraint object.
- Parameters:
- comp - the component to be added
- constraints - where/how the component is added to the layout.
All Packages Class Hierarchy This Package Previous Next Index