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: useScreenMenuBar+setJMenuBar and windowActivated+getOppositeWindow bugs?



On 17-Mar-05, at 6:18 PM, Lieven Dekeyser wrote:

I'm trying to pass along a JMenuBar as windows are activated.. This
way, it would appear as if every window had the same menu bar, without
the need of creating copies for each window. I know the common way to
create mac-like menus is just to copy them for each window, but single
instances are a necessity for our application.

I don't know if this is what you're after, but MRJ Adapter includes a set of classes to deal with menu bars to easily make them all-inclusive on the Mac while leaving them distinct on other platforms. This platform difference is basically abstracted from your code.


<http://www.roydesign.net/mrjadapter/apidoc/net/roydesign/ui/ JScreenMenuBar.html>

These classes work with the starting assumption that you will instantiate one menu bar for each of your frames. If what you're trying to do is to have all windows use the same instance of the menu bar, that won't work, and in my humble opinion you're looking for trouble if you try to do that.

Steve

--
Steve Roy <email@hidden>
Personal homepage: <http://homepage.mac.com/sroy>
Projects homepage: <http://www.roydesign.net>

_______________________________________________
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: 
 >Re: useScreenMenuBar+setJMenuBar and windowActivated+getOppositeWindow bugs? (From: Greg Guerin <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.