Forums Register Login
Menu bars on a Mac
Hello Javaranchers! Again, I'm turning to you for help. Here is the situation:

I have an application written using the NetBeans IDE. In the main() method, the first instructions I have:

System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "ICONS Character Folio");

So far, so good. The application looks like a Mac application, there is a menu bar on the top of the screen, etc.

The problem is that the original menu bar is still there.

How can I remove or hide the original menu bar without messing up the Mac menu bar?

Have you run it through the Jar Bundler ?
No, not yet. My Mac-foo is weak and I assumed I only had to add those lines of code.

I'll give it a try!



I think this is not necessary. On Apple's Java, Aqua is the default look-and-feel.

System.setProperty("apple.laf.useScreenMenuBar", "true");

I think this one is deprecated in favor of com.apple.macos.useScreenMenuBar; see http://developer.apple.com/legacy/mac/library/#technotes/tn/tn2042.html for details.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 667 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jun 18, 2018 19:09:06.