Most of images used inside the NetBeans Platform application have associated URL as they come directly from JARs. Here is a proposal for an API to allow one to obtain the URL when having just the Image object.
Created attachment 104634 [details]
Image getProperty("url", null)
This changes is needed for bug 183778. In that patch, I need to display an image inside an HtmlBrowser. The browser works with URLs, the API works with Images. With this improvement they can cooperate nicely.
I'll integrate on Monday.
Integrated into 'main-golden', will be available in build *201101110000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jaroslav Tulach <firstname.lastname@example.org>
Log: #193944: Ability to find URL from an Image