提交 6cde8c79 编写于 作者: K kilida

Update DirectoryChooserUI.java

上级 4a4ff342
......@@ -1314,9 +1314,7 @@ public class DirectoryChooserUI extends BasicFileChooserUI {
} else {
JFileChooser fc = getFileChooser();
if (fc.isDirectorySelectionEnabled() && !fc.isFileSelectionEnabled()) {
if(fc.getFileSystemView().isDrive(file)) {
return file.getPath();
}
return file.getPath();
} else {
return file.getName();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册