I'm trying to change the application name displayed into the menu bar of OS X but i can't succeed with that. I have tried settings as the first statement in the main method with the following code :
System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Alessio");
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
but it doesn't work, in the menu bar is displayed main :
I'm on Mac OS X Lion (10.7.2).
Is there a way to change the application name in the menu bar? If so, how?