This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 8.0.2 (Build 201411181905) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.8.0_51 Runtime = Java HotSpot(TM) Client VM 25.51-b03 I use (JFileChooser,getSelectedFiles,getAbsolutePath) to get the getAbsolutePath. When one file be choosed, the first letter of disk is lowercase in AbsolutePath. When Multi files be choosed, the first letter of disk is capital in AbsolutePath. So, it can not useing the AbsolutePath to adjudge that file is overlaped or not in repetitious JFileChooser & getSelectedFiles. Sorry, I am a junior for English. --------------------------------------------- 当我使用 JFileChooser,getSelectedFiles,getAbsolutePath时,发现: 1) 不管用单选参数,还是使用多选参数,只要一次只选择一个文件。 那么 得到的 文件绝对路径及文件名中,首字符(盘符的) 是 小写字母。 2) 而使用多选参数,只要一次选择2个以上文件时。 那么 得到的 文件绝对路径及文件名中,首字符(盘符的) 是 大写字母。 3) 这样,如果我用(JFileChooser,getSelectedFiles,getAbsolutePath)做多次选择文件, 那么用 文件绝对路径及文件名 ,无法直接判断,是否做了重复的选择。 --------------------------------------------- Thanks!
Created attachment 162974 [details] IDE 日志