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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.