if(selectedNodes.length==0) {
return;
}
DefaultMutableTreeNode selectedNode = selectedNodes[0];
if (selectedNode instanceof ResourceNode) {
ResourceNode rn = (ResourceNode) selectedNode;
int index = rn.getParent().getIndex(rn);
if (index < rn.getParent().getChildCount() - 1) {
HumanResource people = (HumanResource)selectedNodes[0].getUserObject();
ttModel.moveDown(people);
getTree().setSelectionPath(new TreePath(rn.getPath()));
}
}
}