Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文件管理中searchNode搜索结点方式有bug #34

Open
ViCrack opened this issue Jan 23, 2017 · 0 comments
Open

文件管理中searchNode搜索结点方式有bug #34

ViCrack opened this issue Jan 23, 2017 · 0 comments

Comments

@ViCrack
Copy link

ViCrack commented Jan 23, 2017

从右栏打开文件夹时候会从JTable中获取一个文件夹名称,
然后就会调用searchNode从Root开始查找匹配
DefaultMutableTreeNode tn = TreeMethod.searchNode(filemanagerpanel.getRoot(), name);
路径中如果有重复的目录就会匹配错乱。
可以简单把getRoot()换成filemanagerpanel.getTree().getSelectionPath().getLastPathComponent()为起点查找吧。或者优化搜索方式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant