GridPane

fun GridPane(    posX: Number = 0,     posY: Number = 0,     columns: Int,     rows: Int,     spacing: Number = DEFAULT_GRID_SPACING,     layoutFromCenter: Boolean = true,     visual: Visual = Visual.EMPTY)

Creates a GridPane with given rows and columns.

Parameters

T

Generic ComponentView.

posX

Horizontal coordinate for this GridPane. Default: 0.

posY

Vertical coordinate for this GridPane. Default: 0.

columns

Initial column count.

rows

Initial row count.

spacing

Spacing between rows and columns. Default: DEFAULT_GRID_SPACING.

layoutFromCenter

Whether the GridPane should anchor in the center (true) or top-Left (false). Default: true.

visual

Initial visual for this GridPane. Default: Visual.EMPTY.