public static void setFillWidth (Node child, Boolean value)

Sets the horizontal fill policy for the child when contained by a gridpane. If set, the gridpane will use the policy to determine whether node should be expanded to fill the column or resized to its preferred width. Setting the value to null will remove the constraint. If not value is specified for the node nor for the column, the default value is true.

Parameters:
child    the child node of a gridpane
value    the horizontal fill policy or null for unset

Since:  JavaFX 8.0