From 4a5b9e0b9ecc97203d4089ca0cd0d6df8c76bf1c Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 22 Apr 2019 17:29:27 -0400 Subject: [PATCH] Fix theRenderer --- 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