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.

Bug 135036 - java.io.FileNotFoundException when choosing icon
Summary: java.io.FileNotFoundException when choosing icon
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-14 12:23 UTC by pribyl
Modified: 2015-10-02 13:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (8.41 KB, text/plain)
2008-05-14 12:23 UTC, pribyl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pribyl 2008-05-14 12:23:07 UTC
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
Comment 1 pribyl 2008-05-14 12:23:49 UTC
Created attachment 61375 [details]
stacktrace
Comment 2 pribyl 2008-05-14 12:33:17 UTC
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.
Comment 3 Jana Maleckova 2008-05-14 13:14:04 UTC
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)
Comment 4 Jiri Vagner 2008-12-04 13:43:24 UTC
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)
Comment 5 Tomas Pavek 2015-10-02 13:04:59 UTC
Closing an old bug, Swing Application Framework no longer supported.