int count = parent.getChildCount();
for (int i = 0; i < count; i++) {
JComponent child = (JComponent) parent.getChild(i);
WidgetAdapter cAdapter = WidgetAdapter.getWidgetAdapter(child);
Constraints childConstraints = layout.getConstraints(child);
panel.add(cAdapter.cloneWidget(), childConstraints==null?null:childConstraints.clone());
}
return true;
}
@Override