Normand Briere
2018-12-21 dcda2c5fa15e63daad67f5720a2f726e34f8cd71
timeflow/app/TimeflowApp.java
....@@ -25,7 +25,7 @@
2525
2626 public class TimeflowApp extends JFrame
2727 {
28
- public TFModel model = new TFModel();
28
+ public TimeflowModel model = new TimeflowModel();
2929 public JFileChooser fileChooser;
3030 AboutWindow splash;
3131 String[][] examples;
....@@ -84,6 +84,7 @@
8484 examples[i][0] = s;
8585 examples[i][1] = "settings/examples/" + ex[i];
8686 }
87
+
8788 templates = getVisibleFiles("settings/templates");
8889 fileChooser = new JFileChooser(state.getCurrentFile());
8990
....@@ -137,18 +138,18 @@
137138 AbstractView[] views =
138139 {
139140 timeline,
140
- new CalendarView(model),
141
+ //new CalendarView(model),
141142 new ListView(model),
142143 new TableView(model),
143144 new BarGraphView(model),
144
- intro,
145
- new DescriptionView(model),
145
+ //intro,
146146 new SummaryView(model),
147
+ new DescriptionView(model),
147148 };
148149
149150 for (int i = 0; i < views.length; i++)
150151 {
151
- center.addTab(views[i], views[i].getName(), i < 5);
152
+ center.addTab(views[i], views[i].getName(), true); // i < 5);
152153 displayPanel.addLocalControl(views[i].getName(), views[i].getControls());
153154 }
154155
....@@ -180,7 +181,9 @@
180181 JMenu fileMenu = new JMenu("File");
181182 menubar.add(fileMenu);
182183
183
- fileMenu.add(new NewDataAction(this));
184
+ TimeflowAction tlAction = new NewDataAction(this);
185
+ fileMenu.add(tlAction);
186
+ tlAction.actionPerformed(null);
184187 fileMenu.add(new CopySchemaAction(this));
185188
186189 JMenu templateMenu = new JMenu("New From Template");
....@@ -202,7 +205,6 @@
202205 }
203206
204207 fileMenu.addSeparator();
205
-
206208
207209 JMenuItem open = new JMenuItem("Open...");
208210 fileMenu.add(open);