日期:2014-05-20 浏览次数:20744 次
DefaultMtableTreeNode node = 指定的节点; int chlCount = node.getChildCount(); List<TreePath[]> paths = new ArrayList<TreePath[]>(); DefaultMtableTreeNode chlNode = null; for(int i = 0; i < chlCount; i++){ chlNode = node.getChildAt(i); paths.add(chl.getPath()); }