I would rather file a bug :-)
Navin
-----Original Message-----
From: Joshua Outwater [mailto:email@hidden]
Sent: Wednesday, September 13, 2006 10:31 AM
To: Jha, Navin
Cc: email@hidden
Subject: Re: RE: Can't see separators on Jmenu
Beats me :) You could work around this by substituting your own UI
implementation but it would be a total hack to do so. If that would
help you I can give you pointers on how to do it. Otherwise I would
file a bug with Apple on the issue.
Josh
On 9/13/06, Jha, Navin <email@hidden> wrote:
> Josh,
>
> This becomes a problem in popup menus when you want to separate menu
> items. Is there a fix in the works ?
>
> Thanks,
> Navin
>
> -----Original Message-----
> From: java-dev-bounces+njha=email@hidden
> [mailto:java-dev-bounces+njha=email@hidden] On Behalf Of
> Joshua Outwater
> Sent: Wednesday, September 13, 2006 1:10 AM
> To: email@hidden
> Subject: Re: Can't see separators on Jmenu
>
> I'm pretty sure the Aqua L&F doesn't currently provide a UI
> implementation for menu separators that matches native Aqua. This
> would be the reason for why they show up as empty space rather than a
> line like you would expect. Using the "Screen Menu Bar" as suggested
> in previous posts doesn't suffer from this problem because native
> separator components are created.
>
> Josh
>
> On 9/12/06, Greg Guerin <email@hidden> wrote:
> > David Leader wrote:
> >
> > >I've a number of apps I've written using AWT with menus with
> > >separators that look fine on OSX.
> >
> > So do I, but AWT Menubar and Menu are different classes than Swing
> > JMenubar and JMenu.
> >
> > Also, the top-of-screen menubar is not the same as the in-window
> menubar.
> > I just tested the screen JMenubar and it worked: Mac OS 10.4.7 ppc
> > or i386, Java 1.4.2_09 or 1.5.0_06.
> >
> > However, when I reconfigure the same app to use an in-window
> > JMenubar,
>
> > separators appear only as gaps, not as lines, exactly as you've
> described.
> >
> > The in-window JMenubar and JMenus are implemented using popup-menus
> > (see Sun's source), for which separators are known to not work on
> > Mac OS X, not even in 1.5.0_06.
> >
> > The remedy is to use an AWT Menubar, or use a Swing JMenubar in
> > top-of-screen mode. The latter is controlled by setting
> > "apple.laf.useScreenMenuBar" property to true, or the older
> > "com.apple.macos.useScreenMenuBar". Both properties are honored in
> > 1.4 or 1.5, and the resulting state is the OR of the two boolean
> values.
> >
> >
> > >Could it be something to do with the way I'm compiling? But, if so,
> > >why should it work on Windows?
> >
> > Windows doesn't have the separator bug. Only Mac OS X does, and
> > only on in-window Swing JMenubars.
> >
> > -- GG
> >
> >
> > _______________________________________________
> > 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/joshua.outwater%40gm
> > ai
> > l.com
> >
> > This email sent to email@hidden
> >
> _______________________________________________
> 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
>
>
> The information contained in this communication is intended for the
use of the designated recipients named above. If the reader of this
communication is not the intended recipient, you are hereby notified
that you have received this communication in error, and that any review,
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please
notify The Associated Press immediately by telephone at +1-212-621-1898
and delete this email. Thank you.
>
_______________________________________________
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