jdk/src/java.desktop/share/classes/javax/swing/JTree.java
changeset 31657 6b5f36a9a3c0
parent 29250 f9edd0824de6
child 32865 f9cb6e427f9e
equal deleted inserted replaced
31656:786638581dba 31657:6b5f36a9a3c0
  1363                         break;
  1363                         break;
  1364                     }
  1364                     }
  1365 
  1365 
  1366                     child = getPathForRow(index);
  1366                     child = getPathForRow(index);
  1367                     parent = child.getParentPath();
  1367                     parent = child.getParentPath();
       
  1368                     TreePath prev = getPathForRow(row).getParentPath();
       
  1369                     if (prev != null && !prev.equals(parent)) {
       
  1370                         location = new DropLocation(p, prev,
       
  1371                               model.getChildCount(prev.getLastPathComponent()));
       
  1372                         break;
       
  1373                     }
       
  1374 
  1368                 } else {
  1375                 } else {
  1369                     assert checkOn;
  1376                     assert checkOn;
  1370                     location = new DropLocation(p, getPathForRow(row), -1);
  1377                     location = new DropLocation(p, getPathForRow(row), -1);
  1371                     break;
  1378                     break;
  1372                 }
  1379                 }