首页 新闻 会员 周边

JTree中getLeadSelectionPath()返回不正常

0
悬赏园豆:50 [已关闭问题] 关闭于 2014-04-16 17:37

用java写树时,用TreePath P=fileTree.getLeadSectionPath();

System.out.println(p.toString());

读取后显示的是

 

但我重新写了JTree后,返回结果却是

也就是我的file.Tree.getLeadSelectionPath()得不到我想要的上面的结果。。。请问这要怎么解决?

wbingeek的主页 wbingeek | 初学一级 | 园豆:82
提问于:2014-04-13 17:15
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册