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 20073

Summary: Allow more flexible specification of images
Product: guibuilder Reporter: Rochelle Raccah <raccah>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Rochelle Raccah 2002-02-01 18:12:49 UTC
The specification of a string from a resource bundle is quite flexible in the
form editor -- It is possible to optimize my code and share a bundle or call an
alternate utility method for loading the string.  A recent discussion about
memory usage on nbdev pointed out that the same is not true to specify image
loading.  The form editor generates:

nextButton.setIcon(new
javax.swing.ImageIcon(getClass().getResource(<imageName>)));

But it would be nice to allow an editor which specifies:
nextButton.setIcon(Utilities.loadImage(<imageName>)); or some other utility call
as allowed by the resource bundle editor.
Comment 1 Marek Grummich 2002-07-22 11:27:47 UTC
Set target milestone to TBD
Comment 2 Marek Grummich 2002-07-22 11:29:28 UTC
Set target milestone to TBD
Comment 3 Jiri Rechtacek 2002-07-26 10:22:10 UTC
reassigning to nodes subcomponent
Comment 4 Petr Hrebejk 2002-07-26 12:47:25 UTC
I think I don't quite understand the problem here. Are you talking
about FormEditor. If then this issue probably should not be assigned
to openide nodes. Please clarify.
Comment 5 Rochelle Raccah 2002-07-26 17:10:19 UTC
Yes, I'm talking about the editor shown from the form module.  I
originally filed it against the form component, but Tomas
recategorized it, probably because a generic property editor for
images can be created in openide or core and then used by the form
editor.
Comment 6 Jesse Glick 2003-09-02 15:20:24 UTC
The form editor is responsible for supplying appropriate property
editors. Currently IconEditor is provided only in
openide-deprecated.jar as a temporary compatibility measure. This
should not be used; the form module should create and refine some
editor for javax.swing.Icon, and solve any such problems there.
Reassigning back.
Comment 7 Tomas Pavek 2003-09-02 15:27:19 UTC
Well, now the icon editor resides in form editor, however that was not
the case when this issue was filed...
Comment 8 Tomas Pavek 2005-05-16 17:22:15 UTC
Would be nice to be able to have a "replace format string" like in i18n property
editor.