• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Menu bars on a Mac  RSS feed

 
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!
 
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!
 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!