Use the system menu bar (importan for macOS)

Currently our menu bar usage is lame and the SWT application doesn't
even bother.  It could be cool, but it currently isn't.  Hopefully that
will change.  For the moment though, it's at least on the top of the
screen if you are using a Mac where it belongs.

Of course the application menu is still "Java" and will be until we're
building an app bundle with Gradle, but that'll come in time.
This commit is contained in:
T. Joseph Carter 2017-11-20 17:50:18 -08:00
parent 42cfac68c6
commit 327c5dc3e7
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ public class FXAppleCommander extends Application {
quitItem.setOnAction(e -> handleAction(e));
menuFile.getItems().add(quitItem);
menuBar.getMenus().add(menuFile);
menuBar.setUseSystemMenuBar(true);
return menuBar;
}