What's the best way to integrate resolution independent vector based
artwork into a Java Mac App? There isn't really support for creating
icons from PDF files (as far as I know). I know Kirill Grouchnikov
(and Mike Swingler?) talked about resolution independence as it
relates to Java at this years JavaOne (2008), but I don't know if
they touched on anything like this.
The platform-dependent way we brought resolution independent artwork
to Java was though Toolkit.getImage("NSImage://<your-image>"). If your
application is a bundled app, you can put PDF, ICNS, multi-res TIFF,
and a bunch of other formats in your bundle's Contents/Resources/
directory, and they will be picked up by the [NSImage imageNamed:]
machinery. You can also ask for standard system art which is available
from the AppKit/NSImage.h, with a slight change to the name of the
constants.
Hope this helps,
Mike Swingler
Java Runtime Engineer
Apple Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden