Skip to content

Commit 6ae8d8f

Browse files
committed
use the native menubar on MacOS
1 parent fb35f03 commit 6ae8d8f

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

+3
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)