Re: need help getting apple.laf.useScreenMenuBar to work
Subject : Re: need help getting apple.laf.useScreenMenuBar to work
From: Michael Hall <email@hidden >
Date: Wed, 17 May 2006 05:59:23 -0500
Delivered-to: email@hidden
Delivered-to: email@hidden
On May 16, 2006, at 5:41 PM, Kevin Hoyt wrote:
Hi all,
I'm trying to get a Java Application to have one menu (like it's
supposed
to) instead of one on every window.
From what I've read, I've tried this code:
UIManager.setLookAndFeel("apple.laf.AquaLookAndFeel");
System.setProperty("apple.laf.useScreenMenuBar", "true");
This does set the LAF correctly, but I still get one menu on each
window.
I've also tried to set this property in the bundle plist.... still not
working
What am I doing wrong???
I also came across this, not sure based on what, but probably
harmless if to doesn't help.
setJMenuBar(getJMenuBar()); // Required for Aqua menus up top
Mike Hall mikehall at spacestar dot net
http://www.spacestar.net/users/mikehall
http://sourceforge.net/projects/macnative
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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
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.