This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Mac OS and the fly likes OS X Menubar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "OS X Menubar" Watch "OS X Menubar" New topic

OS X Menubar

L�szl� Kov�cs

Joined: Jun 18, 2005
Posts: 17
How does one create menus for the OS X menubar (as opposed to adding them to a frame)?

Disclaimer: The above post may or may not reflect reality as seen by other people.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

I assume this is for a Swing app? Way back when, I remember reading somewhere that there was a property to set to make the menu use the OS X native menu rather than a Swing menu. As I write mostly web apps, I've never used it myself, just recall its existance.

Try googling around for it, I know it can be done.

[Asking smart questions] [About Bear] [Books by Bear]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The property in question (and others you can use to make a OS X Java app more Mac-like) is described at

[Bear edit: repaired URL]
[ June 27, 2005: Message edited by: Bear Bibeault ]
L�szl� Kov�cs

Joined: Jun 18, 2005
Posts: 17
That page is going to be really useful. Thanks a lot, Ulf and Bear.
I agree. Here's the link:
subject: OS X Menubar
jQuery in Action, 3rd edition