From a9e12f6c508810604c8c91ee15451776b08ce1a1 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 22 Apr 2019 07:41:56 -0400 Subject: [PATCH] Camera capslock fix --- timeflow/app/TimeflowApp.java | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/timeflow/app/TimeflowApp.java b/timeflow/app/TimeflowApp.java index c579393..a057ddb 100755 --- a/timeflow/app/TimeflowApp.java +++ b/timeflow/app/TimeflowApp.java @@ -25,7 +25,7 @@ public class TimeflowApp extends JFrame { - public TFModel model = new TFModel(); + public TimeflowModel model = new TimeflowModel(); public JFileChooser fileChooser; AboutWindow splash; String[][] examples; @@ -84,6 +84,7 @@ examples[i][0] = s; examples[i][1] = "settings/examples/" + ex[i]; } + templates = getVisibleFiles("settings/templates"); fileChooser = new JFileChooser(state.getCurrentFile()); @@ -180,7 +181,9 @@ JMenu fileMenu = new JMenu("File"); menubar.add(fileMenu); - fileMenu.add(new NewDataAction(this)); + TimeflowAction tlAction = new NewDataAction(this); + fileMenu.add(tlAction); + tlAction.actionPerformed(null); fileMenu.add(new CopySchemaAction(this)); JMenu templateMenu = new JMenu("New From Template"); @@ -202,7 +205,6 @@ } fileMenu.addSeparator(); - JMenuItem open = new JMenuItem("Open..."); fileMenu.add(open); -- Gitblit v1.6.2