From cd7f72a250a1ea3d33a716e4877131215600098a Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 20 Nov 2016 04:34:08 -0500 Subject: Make a little more Mac friendly --- src/main/java/com/benburwell/planes/gui/Main1090.java | 1 + src/main/java/com/benburwell/planes/gui/MenuBarProvider.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/com/benburwell/planes/gui/Main1090.java b/src/main/java/com/benburwell/planes/gui/Main1090.java index 71105a9..fb2bdc2 100644 --- a/src/main/java/com/benburwell/planes/gui/Main1090.java +++ b/src/main/java/com/benburwell/planes/gui/Main1090.java @@ -125,6 +125,7 @@ public class Main1090 extends JFrame { } public static void main(String[] args) { + System.setProperty("apple.laf.useScreenMenuBar", "true"); EventQueue.invokeLater(() -> { Main1090 app = new Main1090(); app.setVisible(true); diff --git a/src/main/java/com/benburwell/planes/gui/MenuBarProvider.java b/src/main/java/com/benburwell/planes/gui/MenuBarProvider.java index 7260fd1..d54f09b 100644 --- a/src/main/java/com/benburwell/planes/gui/MenuBarProvider.java +++ b/src/main/java/com/benburwell/planes/gui/MenuBarProvider.java @@ -10,7 +10,7 @@ import java.awt.event.ActionEvent; */ public class MenuBarProvider { private JMenuBar menubar = new JMenuBar(); - private JMenu file = new JMenu("1090"); + private JMenu file = new JMenu("File"); private JMenuItem fileQuitMenuItem = new JMenuItem("Quit"); private JMenu data = new JMenu("Data Source"); private JMenuItem dataConnectItem = new JMenuItem("Connect to Remote..."); -- cgit v1.2.3