LayoutManager is an interface that defines the responsibilities of an object that wants to lay out Components to the display in a Container.
public abstract interface java.awt.LayoutManager { // Interface Methods public abstract void addLayoutComponent (String name, Component component); public abstract void layoutContainer (Container target); public abstract Dimension minimumLayoutSize (Container target); public abstract Dimension preferredLayoutSize (Container target); public abstract void removeLayoutComponent (Component component); }
Name of component to add.
Actual component being added.
Called when you call Container.add(String, Component) to add an object to a container.
The container who needs to be redrawn.
Called when target needs to be redrawn.
The container whose size needs to be calculated.
Minimum Dimension of the container target
Called when the minimum size of the target container needs to be calculated.
The container whose size needs to be calculated.
Preferred Dimension of the container target
Called when the preferred size of the target container needs to be calculated.
Component to no longer track.
Called when you call Container.remove(Component) to remove a component from the layout.
Component, Container, FlowLayout, GridLayout, Object, String