public static void setMargin (Node child, Insets value)

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

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