BorderLayout

Methods
6
Fields
13

Getting one

BorderLayout.new()

Methods

MethodReturnsDescription
getHgap()numberThe horizontal gap between the regions.
setHgap(number)()Sets the horizontal gap, for every container using the layout at its next layout.
getVgap()numberThe vertical gap between the regions.
setVgap(number)()Sets the vertical gap, for every container using the layout at its next layout.
toString()stringThe text java.awt.BorderLayout[hgap=h,vgap=v].
new()BorderLayout() -> BorderLayout: A layout with no gaps.
new(number, number)BorderLayout

Fields

FieldTypeDescription
NORTHstringThe top region.
SOUTHstringThe bottom region.
EASTstringThe right region.
WESTstringThe left region.
CENTERstringThe middle region, which takes the space left.
BEFORE_FIRST_LINEstringPAGE_START's older name.
AFTER_LAST_LINEstringPAGE_END's older name.
BEFORE_LINE_BEGINSstringLINE_START's older name.
AFTER_LINE_ENDSstringLINE_END's older name.
PAGE_STARTstringAbove everything else (left to right: the top).
PAGE_ENDstringBelow everything else (left to right: the bottom).
LINE_STARTstringWhere lines begin (left to right: the left).
LINE_ENDstringWhere lines end (left to right: the right).

Returned by

MethodReturnsDescription
BorderLayoutClass.newBorderLayout() -> BorderLayout: A layout with no gaps.

Method details

setHgap

setHgap: (BorderLayout, number) -> ()

Sets the horizontal gap, for every container using the layout at its next layout.

setVgap

setVgap: (BorderLayout, number) -> ()

Sets the vertical gap, for every container using the layout at its next layout.

new

new: (() -> BorderLayout) & ((number, number) -> BorderLayout)

() -> BorderLayout: A layout with no gaps.

(number, number) -> BorderLayout: A layout with these gaps between the regions (a fraction is truncated).