From 54adfcbf93eb477bedeec45409f36cf7e102b790 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 16 Sep 2019 21:54:55 -0400
Subject: [PATCH] Navigation with intersection.
---
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