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.
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.
Set target milestone to TBD
reassigning to nodes subcomponent
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.
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.
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.
Well, now the icon editor resides in form editor, however that was not the case when this issue was filed...
Would be nice to be able to have a "replace format string" like in i18n property editor.