public void drop(DragAndDropEvent dropEvent) {
Transferable transferable = dropEvent.getTransferable();
Component sourceComponent = transferable.getSourceComponent();
TargetDetails dropTargetData = dropEvent.getTargetDetails();
DropTarget target = dropTargetData.getTarget();
if (sourceComponent.getParent() != layout) {
AbstractComponent c = getWrappedComponent(
createComponentFromPaletteItem(
sourceComponent.getCaption(), null), this);