
WebLaF: v1.29 pre-release build & v1.2.9 styling build.Probably on the earlier JDK versions you could avoid step (2), but I'm not sure about that.īy the way, here is the environment I used for tests: Any other menu bar set for other frames will also become native if they use AquaMenuBarUI, otherwise you will receive an exception upon adding menu bar to the frame.

#Mac java aqua look and feel for windows mac os x
That menu bar will become native Mac OS X application menu bar.

Setup Web L&F - WebLookAndFeel.install ().Initialize Aqua L&F - new AquaLookAndFeel ().initialize ().Set property - tProperty ( "", "true" ).That all leads to the only possible use case of the native menu with custom L&F: If you look into Aqua L&F code you will find that it loads some native libraries upon initialization and there seem to be no way to load them separately - you will get multiple different exceptions if you try to load them outside of the Aqua L&F class. That exception disappears only when you have Aqua L&F installed or at least initialized in runtime. There is no way to use native menu bar without using it because there is a hardcoded check associated with that UI within ._AppMenuBarHandler class.Īnd that is not the only problem - if you would try to set that UI on the menu bar along with "" property set to true you will get UnsatisfiedLinkError from a native utility method.

I've tried enabling native menu bar and as it was suggested by in #52 - you have to setup a custom UI on the menu bar - one. So I tried a few test examples and here are the results.
