62,622
社区成员
发帖
与我相关
我的任务
分享
if (selectionNode != null){
String name = (String) selectionNode.getUserObject().toString();
if (selectionNode.isLeaf()) {
System.out.println(name);
} else if(!selectionNode.isLeaf()){
System.out.println("父节点");
}
}