This is bizarre. I'm sure I'm doing something wrong, but I don't know what!
Using IcoWrapperResizableIcon.getIcon(InputStream, Dimension) when the
inputstream is from a resource (getClass().getResourceAsStream(path)) works as
expected until the project is bundled up into one jar file.
In the ribbon UI I have created, the icons showed up correctly when running
using "java -cp build packagepath.RibbonThingy".
When I packaged up the same files into a jar file, the ico icons don't show up
using "java -cp packaged.jar packagePath.RibbonThingy"
(png icons show up just fine)
$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode)
I've tried to eliminate as many variables as I can think of. I've tried running
with OpenJDK under linux as well. Also tried OS X Java 6 and MS Windows Java 6.
All of those show the PNG icons just fine but not ICO nor SVG icons.