Column/Row Templates

FormLayout provides several predefined templates for columns and rows. You can also define custom column/row templates in the Preferences dialog.

Column templates

Name Description Gap
default Determines the column width by computing the maximum of all column component preferred widths. If there is not enough space in the container, the column can shrink to the minimum width. no
preferred Determines the column width by computing the maximum of all column component preferred widths. no
minimum Determines the column width by computing the maximum of all column component minimum widths. no
related gap A logical horizontal gap between two related components. For example the OK and Cancel buttons are considered related. yes
unrelated gap A logical horizontal gap between two unrelated components. yes
label component gap A logical horizontal gap between a label and an associated component. yes
glue Has an initial width of 0 pixels and grows. Useful to describe glue columns that fill the space between other columns. yes
button A logical horizontal column for a fixed size button. no
growing button A logical horizontal column for a growing button. no

Row templates

Name Description Gap
default Determines the row height by computing the maximum of all row component preferred heights. If there is not enough space in the container, the row can shrink to the minimum height. no
preferred Determines the row height by computing the maximum of all row component preferred heights. no
minimum Determines the row height by computing the maximum of all row component minimum heights. no
related gap A logical vertical gap between two related components. yes
unrelated gap A logical vertical gap between two unrelated components. yes
narrow line gap A logical vertical narrow gap between two rows. Useful if the vertical space is scarce or if an individual vertical gap shall be smaller than the default line gap. yes
line gap A logical vertical default gap between two rows. A little bit larger than the narrow line gap. yes
paragraph gap A logical vertical default gap between two paragraphs in the layout grid. This gap is larger than the default line gap. yes
glue Has an initial height of 0 pixels and grows. Useful to describe glue rows that fill the space between other rows. yes