Table 10-9. List of Constraints That Can Be Set for the Children in a GridPane

Constraint

Type

Description

columnIndex

Integer

It is the column index where the layout area of the child node starts. The first column has the index 0. The default value is 0.

rowIndex

Integer

It is the row index where the layout area of the child node starts. The first row has the index 0. The default value is 0.

columnSpan

Integer

It is the number of columns the layout area of a child node spans. The default is 1.

rowSpan

Integer

It is the number of columns the layout area of a child node spans. The default is 1.

halignment

HPos

It specifies the horizontal alignment of the child node within its layout area.

valignment

VPos

It specifies the vertical alignment of the child node within ...

Get Learn JavaFX 8: Building User Experience and Interfaces with Java 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.