Well, let me tell you the stages you might try after you've found out that it's "org/netbeans/core/startup/splash.gif" :
- Use the ClassLoader from Lookup to load the resource. What does this do ? It returns the default, non-branded splash.
- getClass().getResource(). Same as above.
- new URL(). Wrong !
- Utilities.loadImage(string). Still wrong.
So ? What is the solution ? Well, it's Utilities.loadImage(string, true) . This is the only one that does the localized/branded woodoo. I'm still not certain why the nbres:// stuff didn't work...
2 comments:
Emilian,
Seems the Utilities.loadImage(string,true) is now deprecated (NB 6.5 RC1)
Best,
JC
Well, the blog post is 2 years old :-)
Take a look at ImageUtilities.loadImage(String,boolean) .
Thanks for dropping by.
Post a Comment