java.awt.BorderLayout (JDK 1.0)
This class implements the LayoutManager interface to lay out Component objects in a Container. The BorderLayout arranges components that have been added to their Container (using the Container.add() method) with the names "North," "South," "East," "West," and "Center." These named components are arranged along the edges and in the center of the container. The hgap and vgap arguments to the BorderLayout constructor specify the desired horizontal and vertical spacing between adjacent components.
Note that applications should never call the LayoutManager methods of this class directly; the Container for which the BorderLayout is registered does this.
public classBorderLayoutextends Object implements LayoutManager2, Serializable { //Public ConstructorspublicBorderLayout(); publicBorderLayout(inthgap, intvgap); //Constants1.1 public static final StringCENTER; 1.1 public static final StringEAST; 1.1 public static final StringNORTH; 1.1 public static final StringSOUTH; 1.1 public static final StringWEST; //Public Instance Methods1.1 public voidaddLayoutComponent(Componentcomp, Objectconstraints); //From LayoutManager2# public voidaddLayoutComponent(Stringname, Componentcomp); //From LayoutManager1.1 public intgetHgap(); 1.1 public floatgetLayoutAlignmentX(Containerparent); //From LayoutManager21.1 public floatgetLayoutAlignmentY(Containerparent); //From LayoutManager21.1 public intgetVgap(); 1.1 public voidinvalidateLayout(Containertarget); //From LayoutManager2public voidlayoutContainer(Containertarget); //From LayoutManager1.1 public DimensionmaximumLayoutSize(Containertarget); //From LayoutManager2public DimensionminimumLayoutSize(Containertarget); //From LayoutManagerpublic DimensionpreferredLayoutSize(Containertarget); //From LayoutManagerpublic voidremoveLayoutComponent(Componentcomp); //From LayoutManager1.1 public voidsetHgap(inthgap); 1.1 public voidsetVgap(intvgap); public StringtoString(); //Overrides Object}
Hierarchy:
Object->BorderLayout(LayoutManager2(LayoutManager), Serializable)