From 79d0f9a45d36656051a77a7b0837aa0318f81ee5 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Sun, 09 Jun 2019 11:23:18 -0400
Subject: [PATCH] Undo/redo

---
 timeflow/views/IntroView.java |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/timeflow/views/IntroView.java b/timeflow/views/IntroView.java
index 8540401..ea61f6d 100755
--- a/timeflow/views/IntroView.java
+++ b/timeflow/views/IntroView.java
@@ -34,7 +34,7 @@
         Image image;
         Image repeat;
 
-        public IntroView(TFModel model)
+        public IntroView(TimeflowModel model)
         {
                 super(model);
                 setBackground(Color.white);
@@ -73,7 +73,14 @@
         {
                 try
                 {
-                        String sidebar = IO.read("settings/sidebar.html");
+                        //resource = jar:file:/Users/nbriere/Projects/GrafreeD/dist/GrafreeD.jar!/timeflow/settings/sidebar.html
+                        //java.lang.IllegalArgumentException: URI is not hierarchical
+                        
+                        //if (true) return;
+                        
+                        final URL resource = IntroView.class.getClassLoader().getResource("sidebar.html");
+                        System.out.println("resource = " + resource);
+                        String sidebar = IO.read(new File(resource.toURI()));
                         controls = new HtmlControls(sidebar);
                 } catch (Exception e)
                 {

--
Gitblit v1.6.2