GridConstraints () { final GridConstraints copy = new GridConstraints(); copy.setRow(myRow); copy.setColumn(myColumn); copy.setColSpan(myColSpan); copy.setRowSpan(myRowSpan); copy.setVSizePolicy(myVSizePolicy); copy.setHSizePolicy(myHSizePolicy); copy.setFill(myFill); copy.setAnchor(myAnchor); copy.setIndent(myIndent); copy.setUseParentLayout(myUseParentLayout); copy.myMinimumSize.setSize(myMinimumSize); copy.myPreferredSize.setSize(myPreferredSize); copy.myMaximumSize.setSize(myMaximumSize); return copy; }