Skip to content

Commit 6d823ba

Browse files
authored
Merge pull request #540 from oraveczandrew/native-mac-os-menu-bar
use the native menubar on MacOS
2 parents fb35f03 + 6ae8d8f commit 6d823ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ public static void main(String[] args)
203203
//setup swing components
204204
if(!CLI.isCLI())
205205
{
206+
// Enable the native menu bar on macOS
207+
System.setProperty("apple.laf.useScreenMenuBar", "true");
208+
206209
viewer = new MainViewerGUI();
207210
//SwingUtilities.updateComponentTreeUI(viewer);
208211
}

0 commit comments

Comments
 (0)