Beware: This post was published 3 years ago and its content may be outdated.
#14404

Dear  programmers who develop Java applications for OS X, please, add this line to your application:

System.setProperty(“apple.laf.useScreenMenuBar”, “true”);

It will place the menu bar where it is expected to be in an OS X application.