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: setting app name for Application Menu items



I've tried setting the "apple.awt.application.name" property on the C side in a JavaVMOption prior to invoking the JVM, as well as in the constructor of my Java object with a call to System.setProperty(). Neither had an effect; the menubar still knows the name of my executable, but About, Hide, and Quit still display "(null)".

Jamison Hope
email@hidden


On Jan 12, 2007, at 10:52 AM, Scott Kovatch wrote:


On Jan 11, 2007, at 7:25 PM, Jamison Hope wrote:

Hi all,

I have a cross-platform (OS X, Linux) application, written in C, which invokes a JVM which uses Swing. Aside from launching the VM, the native side goes off and does other things, but has no graphical presence. As per TN2147 and simpleJavaLauncher, the JVM is launched from a secondary thread. When the app launches, the application menu's name (and the name in the Dock) is the name of the executable; however, the "About", "Hide", and "Quit" menu items all say "(null)" instead of the executable's name.

Our AWT attempts to infer the name from the bundle or the command line when it's not provided, but in your situation, there's nothing to infer.


Set the property "apple.awt.application.name" to the name you want to use in the application menu and dock. That should be all you need to do.

Scott

------------------
Scott Kovatch
Apple Inc.
Java Runtime Classes
Cleveland Hts, OH
email@hidden

I am Scott Kovatch, and I approved this message.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >setting app name for Application Menu items (From: Jamison Hope <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.