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 186774 - Cannot create a cached version of Icon when converting Image
Summary: Cannot create a cached version of Icon when converting Image
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: PC All
: P3 normal (vote)
Assignee: issues@platform
Depends on:
Reported: 2010-05-27 00:55 UTC by mvfranz
Modified: 2010-06-02 07:54 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description mvfranz 2010-05-27 00:55:45 UTC
org.openide.util.ImageUtilities has many methods that create/convert images/icons.  Many images/icons are cached for re-use when created, but when images are converted to icons or icons converted to images, new instances are created without caching.  It seem fitting that the icon2Image and image2Icon  would also use cached images/icons.

An example use would be to use mergeImage and then wrap the Image in ImageIcon.  If image2Icon cached the resulting icon, multiple calls would not create multiple ImageIcons.
Comment 1 Victor Vasilyev 2010-05-28 13:04:41 UTC
Seems org.openide.util.ImageUtilities is a part of the platform, so I'll re-assign this issue. Please, evaluate this bug.