Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile 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: 62317

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42954
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.
jQuery in Action, 2nd edition
subject: OS X Menubar