((FormObject)popupObj).copyInheritedValuesFromParent(formObj);
((FormObject)popupObj).setParent(formObj.getObjectRefAsString());
//dont set the parent object as this is a copy of the same object
}
popup = new PdfSwingPopup(formObj,popupObj,pageData.getCropBoxWidth(currentPage));
//copy current popup bounds array so we can add new bounds to new index
float[][] tmpf = new float[popupBounds.length+1][4];
System.arraycopy(popupBounds, 0, tmpf, 0, popupBounds.length);