On Jul 1, 2008, at 11:09 AM, Steve McLeod wrote:
Hi there,
This code, when run on Leopard, gives me a nice "add" button.
JButton addButton = new JButton(new
ImageIcon(Toolkit.getDefaultToolkit().getImage("NSImage://
NSAddTemplate")));
Unfortunately "NSImage://..." is only available on Leopard, as far
as I can tell.
Can someone suggest a nice alternative approach that works on Tiger,
too?
Unfortunately, this functionality only exists on Leopard. Even if you
write JNI and call [NSImage imageNamed:], the NSAddTemplate stock
image does not exist on Tiger for native applications.
Sorry,
Mike Swingler
Java Frameworks 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/ken.orr
%40mathworks.com
This email sent to email@hidden