// if 'dragSrc' is currently docked, then undock it instead of using
// a
// simple remove(). this will allow the DockingPort to do any of its
// own
// cleanup operations associated with component removal.
success = dockingPort.undock(dragSrc);
} else {
// otherwise, just remove the component
parent.remove(dragSrc);
success = true;
}