I have tried to follow the instructions to make Java Swing application to look like Mac OSX application. However, these are a bit outdated.
The properties
System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "My App");
don't seem to do anything.
MRJApplicationUtils as instructed here is deprecated, but it seems to work
com.apple.mrj.MRJApplicationUtils.registerAboutHandler(
new com.apple.mrj.MRJAboutHandler() {
@Override
public void handleAbout() {
showAbout();
}
});
(Edit) (And this even compiles in other OSes, if you just add empty 'MRJ' stub classes to your project.)
So what are the current recommendations to prepare for OSX in Java 8/OpenJDK? Namely I would like to still enable renaming my app properly and to move the main menu to the Mac Menubar. As mentioned, About box can be handled, but seems it is not recommended as I've done it.
(Edit) BTW: I am now using Nimbus Look and Feel, but it seems that these issues didn't work any better with Aqua.
(Edit) Naming the app is instructed here