void (final GridConstraints constraints) { myRow = constraints.myRow; myColumn = constraints.myColumn; myRowSpan = constraints.myRowSpan; myColSpan = constraints.myColSpan; myHSizePolicy = constraints.myHSizePolicy; myVSizePolicy = constraints.myVSizePolicy; myFill = constraints.myFill; myAnchor = constraints.myAnchor; myIndent = constraints.myIndent; myUseParentLayout = constraints.myUseParentLayout; // Restore sizes myMinimumSize.setSize(constraints.myMinimumSize); myPreferredSize.setSize(constraints.myPreferredSize); myMaximumSize.setSize(constraints.myMaximumSize); }