File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMenuBars on Mac OS

 
Olivier Legat
Ranch Hand
Posts: 176
Chrome Mac Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone.

I'm new to programming on Macs and I always did something like so on Windows/Linux to obtain a menu bar:

Evidently it works on Macs too but not quite how I want it. The Menu bar appears inside the window as oppose to on the same bar as all the other application. In other words, I want my menus to appear on the same bar as the one with the apple logo, because that's what Mac users are use to. Does anyone know a way of doing this and yet insure my program with still works on Windows/Linux as if nothing was changed.

Thank-you
 
Lester Burnham
Rancher
Posts: 1337
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's as easy as setting a system property. See "Using a Macintosh Menubar" in http://developer.apple.com/legacy/mac/library/#technotes/tn/tn2042.html. The MacOsxFaq links to more useful resources on how to make a Java app more Mac-like.
 
Olivier Legat
Ranch Hand
Posts: 176
Chrome Mac Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank-you all Those links will prove very helpful to me.

Cheers
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic