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 126721 - Error handling icons in actions
Summary: Error handling icons in actions
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-05 14:18 UTC by vogelor
Modified: 2011-07-27 15:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vogelor 2008-02-05 14:18:34 UTC
i think, i reported this error some time ago, but my search didn't find anything, so i post it "again"...

i have 3 projects. the first has shared icons and the other 2 projects use this icons. when i create a action inside one
of the 2 projects and assign them a icon of project 1 (the shared icons) then i can see the icon inside the designer,
but inside the property file of the form there you can read xxxaction.icon={$null} and the next time i open the form
inside the designer, the icon is gone!

if i do the same with an icon of a button ("outside" an action) then it works.
Comment 1 Jan Stola 2008-03-14 15:20:59 UTC
I was able to reproduce this issue. Despite the reporter's note it doesn't seem to work even when the icon is set 
directly (not through action).

The problem is in DesignResourceMap, it is not able to handle such icons. It uses class loader from SOURCE ClassPath. 
It should use something like ClassPathUtils.getProjectClassLoader(srcFile); We also should make sure that this 
classloader is correctly updated when project's classpath is updated.
Comment 2 Jan Stola 2011-07-27 15:12:57 UTC
NetBeans support of Swing Application Framework has been discontinued => closing this issue as WONTFIX.