Normand Briere
2018-07-08 f4160780a4d8278920b99ada1050f320d6e30a73
timeflow/app/TimeflowApp.java
....@@ -68,7 +68,7 @@
6868 }
6969 };
7070
71
- public void TimeFlowWindow(Container container, JFrame frame) throws HeadlessException
71
+ public JMenuBar TimeFlowWindow(Container container) throws HeadlessException
7272 {
7373 // read example directory
7474 String[] ex = getVisibleFiles("settings/examples");
....@@ -172,7 +172,8 @@
172172 });
173173
174174 JMenuBar menubar = new JMenuBar();
175
- frame.setJMenuBar(menubar);
175
+
176
+ // frame.setJMenuBar(menubar);
176177
177178 JMenu fileMenu = new JMenu("File");
178179 menubar.add(fileMenu);
....@@ -340,7 +341,7 @@
340341 }
341342
342343 JMenu helpMenu = new JMenu("Help");
343
- menubar.add(helpMenu);
344
+ //menubar.add(helpMenu);
344345
345346 helpMenu.add(new WebDocAction(this));
346347
....@@ -372,6 +373,8 @@
372373 }
373374 }
374375 });
376
+
377
+ return menubar;
375378 }
376379
377380 void splash(boolean visible)
....@@ -404,7 +407,7 @@
404407
405408 Container container = getContentPane();
406409
407
- TimeFlowWindow(container, this);
410
+ TimeFlowWindow(container);
408411 }
409412
410413 void makeRecentFileMenu()