• Post Reply Bookmark Topic Watch Topic
  • New Topic

Menu bars on a Mac  RSS feed

 
Daniel Gallant
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
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?

Thanks!
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you run it through the Jar Bundler ?
 
Daniel Gallant
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

Thanks!
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!