On May 24, 2005, at 5:17 PM, Werner Randelshofer wrote:
Dear Kevin,
I think that Apple's Aqua Look and Feel creates an AWT menu bar,
when the
'apple.laf.useScreenMenuBar' property is set to true.
The Synth L&F does not read this property and always creates a
menu bar
inside of a JFrame.
An easy solution might be, to directly use AWT menu bars instead
of Swing
menu bars. This should work with any L&F on the Mac.
After some work I was able to get my app semi-working with AWT menu
bars. It took a lot of hacking and the results are not very
satisfactory. AWT menu bars do not support Actions, icons on the
menu items, and several other things.
I don't believe that Aqua creates AWT menu bars because my previous
interface had all of the Swing bells and whistles such as the icons
on the menu bars. Really, for consistency, Apple should support
using this property with the Synth interface. I'm stuck at the
moment and I don't know which way to go with my application...
Actually, we do create AWT menu bars behind the scenes. Menus have
come a long way since the days of OS 9, so we're able to support
Swing menu shortcuts, menu icons, and other niceties without a lot of
hacking. It all happens behind the scenes.
(No, we will _not_ be making a Mac-only API to support icons and more
exotic menu shortcuts in AWT menus. If you want that use SWT. :-))
The screen menu bar is heavily tied into the Aqua L&F, since it
relies on a number of Swing and AWT notifications, so I don't think
you'll ever see it in any L&F other than Aqua. 'Synth' and Metal are
considered cross-platform look and feels, so stick with the in-the-
window menu bars if you want Synth.
Are you having problems with Aqua that you can't use it? Or are you
forcing Synth on all platforms?
Scott
------------------
Scott Kovatch
Apple Computer
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.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden