Class awt.BorderLayout
All Packages    This Package    Previous    Next

Class awt.BorderLayout

java.lang.Object
   |
   +----awt.ContainerLayout
           |
           +----awt.GapsLayout
                   |
                   +----awt.BorderLayout

public class BorderLayout
extends GapsLayout
A TNT style border bag layout. It will layout a container using members named "North", "South", "East", "West" and "Center". The "North", "South", "East" and "West" components get layed out according to their preferred sizes and the constraints of the container's size. The "Center" component will get any space left over. To use a BorderLayout in a window do the following:
	Window win = new Window(parent, "", Color.lightGray, 200, 200);
	win.setLayout(new BorderLayout());
See Also:
Window, Frame
Version:
1.22 31 Jan 1995
Author:
Arthur van Hoff

defaultLayout
Use this object to set a border layout for a window with standard properties.

BorderLayout()

getPreferredSize(Container)
Return the preferred size for this layout given the components in pTarget.
layout(Container)
Layout the container.
minDimension(Container)
Return the minimum dimensions needed to layout the components contained in pTarget.

defaultLayout
  public static BorderLayout defaultLayout
Use this object to set a border layout for a window with standard properties.

BorderLayout
  public BorderLayout()

minDimension
  public Dimension minDimension(Container pTarget)
Return the minimum dimensions needed to layout the components contained in pTarget.
Parameters:
pTarget - is the Container on which to do the layout.
Overrides:
minDimension in class ContainerLayout
See Also:
Container

getPreferredSize

  public Dimension getPreferredSize(Container pTarget)
Return the preferred size for this layout given the components in pTarget.
Parameters:
pTarget - is the component which needs to be laid out.
Overrides:
getPreferredSize in class ContainerLayout
See Also:
Container

layout

  public void layout(Container pTarget)
Layout the container. This method will actually reshape the components in pTarget in order to satisfy the constraints of the BorderLayout object. Normally this method is invoked by the container.
Parameters:
pTarget - is the component being laid out.
Overrides:
layout in class ContainerLayout
See Also:
Container


All Packages    This Package    Previous    Next