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

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

System.setProperty("apple.laf.useScreenMenuBar", "true");
Code language: Java (java)

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

Leave a Reply

Your email address will not be published.

Required fields are marked *

Your avatar