javax.swing.plaf.basic

Class BasicInternalFrameUI.InternalFrameLayout

public class BasicInternalFrameUI.InternalFrameLayout extends Object implements LayoutManager

This helper class acts as the LayoutManager for JInternalFrames.
Method Summary
voidaddLayoutComponent(String name, Component c)
This method is called when the given Component is added to the JInternalFrame.
voidlayoutContainer(Container c)
This method is used to set the bounds of the children of the JInternalFrame.
DimensionminimumLayoutSize(Container c)
This method returns the minimum layout size.
DimensionpreferredLayoutSize(Container c)
Th8is method returns the preferred layout size.
voidremoveLayoutComponent(Component c)
This method is called when a Component is removed from the JInternalFrame.

Method Detail

addLayoutComponent

public void addLayoutComponent(String name, Component c)
This method is called when the given Component is added to the JInternalFrame.

Parameters: name The name of the Component. c The Component added.

layoutContainer

public void layoutContainer(Container c)
This method is used to set the bounds of the children of the JInternalFrame.

Parameters: c The Container to lay out.

minimumLayoutSize

public Dimension minimumLayoutSize(Container c)
This method returns the minimum layout size.

Parameters: c The Container to find a minimum layout size for.

Returns: The minimum dimensions for the JInternalFrame.

preferredLayoutSize

public Dimension preferredLayoutSize(Container c)
Th8is method returns the preferred layout size.

Parameters: c The Container to find a preferred layout size for.

Returns: The preferred dimensions for the JInternalFrame.

removeLayoutComponent

public void removeLayoutComponent(Component c)
This method is called when a Component is removed from the JInternalFrame.

Parameters: c The Component that was removed.