Java + OS X: Put Menu Bar in the right place

This post was published 7 years ago. It may be exremely outdated.

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.

Leave a Reply