How do i add JMenuBar to the Screen Menu Bar in macOS

Viewed 18

I'm developing an app for macOS. But when i try to add the JMenuBar to the JFrame instance it just adds the the JFrame window Instead of the macOS screen menu bar.

I've tried Following this Article and it didn't work :https://www.formdev.com/flatlaf/macos/

What it did was just overlap the application title bar with the JMenuBar. I've read other articles online and still with no noticeable change.

JRE Info:

% javac --version
javac 17.0.4.1

JDK Info:

% java --version 
java 17.0.4.1 2022-08-18 LTS
Java(TM) SE Runtime Environment (build 17.0.4.1+1-LTS-2)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.4.1+1-LTS-2, mixed mode, sharing)
0 Answers
Related