916917918919920921922923924925926
Point location = e.getLocation(); int targetIndex = indexAtLocation(location.x, location.y); if (dragContent.isDetached()) { if (targetIndex >= 0) { dragContent.reattach(targetIndex); } else dragContent.reattach(-1); e.dropComplete(true); } else {
918919920921922923924925926927928
if (dragContent.isDetached()) { if (targetIndex >= 0) { dragContent.reattach(targetIndex); } else dragContent.reattach(-1); e.dropComplete(true); } else { if (targetIndex >= 0) { setIndex(getContentAt(dragTabIndex), targetIndex);