From c8024a8777faf76727fbb6975ddf4fecb567b426 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Sun, 08 Jul 2018 15:32:33 -0400 Subject: [PATCH] Timeline menu UI. --- timeflow/app/TimeflowApp.java | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/timeflow/app/TimeflowApp.java b/timeflow/app/TimeflowApp.java index 4c1f460..4826184 100755 --- a/timeflow/app/TimeflowApp.java +++ b/timeflow/app/TimeflowApp.java @@ -68,7 +68,7 @@ } }; - public void TimeFlowWindow(Container container, JFrame frame) throws HeadlessException + public JMenuBar TimeFlowWindow(Container container) throws HeadlessException { // read example directory String[] ex = getVisibleFiles("settings/examples"); @@ -172,7 +172,8 @@ }); JMenuBar menubar = new JMenuBar(); - frame.setJMenuBar(menubar); + + // frame.setJMenuBar(menubar); JMenu fileMenu = new JMenu("File"); menubar.add(fileMenu); @@ -340,7 +341,7 @@ } JMenu helpMenu = new JMenu("Help"); - menubar.add(helpMenu); + //menubar.add(helpMenu); helpMenu.add(new WebDocAction(this)); @@ -372,6 +373,8 @@ } } }); + + return menubar; } void splash(boolean visible) @@ -404,7 +407,7 @@ Container container = getContentPane(); - TimeFlowWindow(container, this); + TimeFlowWindow(container); } void makeRecentFileMenu() -- Gitblit v1.6.2