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 Dev (Build 200805120001) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: SunOS version 5.11 running on x86; ISO646-US; en (nb) I was choosing icon for a JButton action (Set Action - Create new ... - Set Icon) I used 'Import to project', choosed a .png file, confirmed - and the File not found exception occured
Created attachment 61375 [details] stacktrace
Well, I guess I found the problem. It was caused by my fault accidentally ... (In the filechooser:) I clicked a file, then I went to another directory and I pressed Enter (I thought that I choosed the desired png file, but I did not). After confirming the target folder the exc. was thrown. NOTE that the Filechooser dialog can be confirmed by pressing Enter, even if all buttons except Cancel are disabled. This lead to the problem in my case. It is quite easily reproducible, though quite ulikely to happen with correct user approach - thus lowering priority to P4.
StackTrace: =========== java.io.FileNotFoundException: /NetBeansProjects/DesktopApplication2/src/myApp/resources/busy-icon1.png (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.netbeans.modules.form.editors.ImportImageWizard$1.run(ImportImageWizard.java:166) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:499)
Reproducible Product Version: NetBeans IDE 6.5 (Build 200811100001) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)
Closing an old bug, Swing Application Framework no longer supported.