public interface LayoutManager
Container| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(String name,
Component component)
Adds the specified component to the layout group.
|
void |
layoutContainer(Container parent)
Lays out the components in the given container.
|
Dimension |
minimumLayoutSize(Container parent)
Calculates the minimum size for this container, taking into account
the components it contains.
|
Dimension |
preferredLayoutSize(Container parent)
Calculates the preferred size for this container, taking into account
the components it contains.
|
void |
removeLayoutComponent(Component component)
Removes the specified component from the layout group.
|
void addLayoutComponent(String name, Component component)
name - the name of the component to addcomponent - the component to addvoid removeLayoutComponent(Component component)
component - the component to removeDimension preferredLayoutSize(Container parent)
parent - the parent container to lay outminimumLayoutSize(Container)Dimension minimumLayoutSize(Container parent)
parent - the parent container to lay outpreferredLayoutSize(Container)void layoutContainer(Container parent)
parent - the container to lay out