Normand Briere
2019-10-01 65bdec7ae2c99ca2102c55f92bd62b48c9f14847
timeflow/views/IntroView.java
....@@ -34,7 +34,7 @@
3434 Image image;
3535 Image repeat;
3636
37
- public IntroView(TFModel model)
37
+ public IntroView(TimeflowModel model)
3838 {
3939 super(model);
4040 setBackground(Color.white);
....@@ -73,7 +73,14 @@
7373 {
7474 try
7575 {
76
- String sidebar = IO.read("settings/sidebar.html");
76
+ //resource = jar:file:/Users/nbriere/Projects/GrafreeD/dist/GrafreeD.jar!/timeflow/settings/sidebar.html
77
+ //java.lang.IllegalArgumentException: URI is not hierarchical
78
+
79
+ //if (true) return;
80
+
81
+ final URL resource = IntroView.class.getClassLoader().getResource("sidebar.html");
82
+ System.out.println("resource = " + resource);
83
+ String sidebar = IO.read(new File(resource.toURI()));
7784 controls = new HtmlControls(sidebar);
7885 } catch (Exception e)
7986 {