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.
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.
_______________________________________________
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