public static void setMargin (Node child, Insets value)

Sets the margin for the child when contained by a gridpane. If set, the gridpane will lay it out with the margin space around it. Setting the value to null will remove the constraint.

Parameters:
child    the child node of a gridpane
value    the margin of space around the child