// If theTransferable is a TransferEntries drop it
if(flavors != null && flavors.length == 2 &&
flavors[0].getHumanPresentableName().equals("Indices") &&
flavors[1].getHumanPresentableName().equals("Source")) {
try {
JList target = (JList)((DropTarget)e.getSource()).getComponent();
int x = target.locationToIndex(e.getLocation());
Rectangle rect = target.getCellBounds(x,x);
if(rect != null) {
rect.setSize(rect.width,rect.height/2);
if(!rect.contains(e.getLocation())) {
x++;
}
} else {
x = 0;
}
if(target.equals(mTarget)) {
mAction.drop(mSource,mTarget,x,false);
}
else if(target.equals(mSource)) {
mAction.drop(mSource,mSource,x,false);
}
}catch(Exception ee) {ee.printStackTrace();}
}