NSMenuFX icon indicating copy to clipboard operation
NSMenuFX copied to clipboard

FYI: Hugely useful for Swing as well

Open wiverson opened this issue 3 years ago • 0 comments

FYI, this line:

MenuToolkit.toolkit().setAppearanceMode(AppearanceMode.DARK);

...works with Swing as well. Combining that one line with the following:

https://www.formdev.com/flatlaf/

...and (amazingly) the following line...

System.setProperty("apple.laf.useScreenMenuBar", "true");

...is now giving me an astonishingly modern looking Swing app on macOS, with IntelliJ-style theme options, macOS menu bar, and window decorations that match the OS.

I'd suggest updating the documentation to reflect that the library is hugely useful for Swing as well as JavaFX.

Also, P.S. thanks for this - very helpful!

wiverson avatar Apr 24 '21 00:04 wiverson