Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage://NSAddTemplate and Tiger



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/email@hidden

This email sent to email@hidden
References: 
 >NSImage://NSAddTemplate and Tiger (From: "Steve McLeod" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.