if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); String short_url = url_text.substring(5); if (!short_url.startsWith("/")) { short_url = "/" + short_url; } Uu.p("short url = " + short_url); ref = marker.getClass().getResource(short_url); Uu.p("ref = " + ref); panel.setDocument(ref.toExternalForm()); } else if (url_text.startsWith("http")) { panel.setDocument(url_text); } else { ref = new File(url_text).toURL(); panel.setDocument(ref.toExternalForm()); } Uu.p("ref = " + ref); Uu.p("url_text = " + url_text);
if (url_text.startsWith("demo:")) { Uu.p("starts with demo"); DemoMarker marker = new DemoMarker(); Uu.p("url text = " + url_text); String short_url = url_text.substring(5); if (!short_url.startsWith("/")) { short_url = "/" + short_url;
    public void loadPage(String url_text, XHTMLPanel panel)            throws Exception {        Document doc = null;        URL ref = null;        if (url_text.startsWith("demo:")) {            Uu.p("starts with demo");            DemoMarker marker = new DemoMarker();            Uu.p("url text = " + url_text);            String short_url = url_text.substring(5);            if (!short_url.startsWith("/")) {                short_url = "/" + short_url;            }            Uu.p("short url = " + short_url);            ref = marker.getClass().getResource(short_url);            Uu.p("ref = " + ref);            panel.setDocument(ref.toExternalForm());        } else if (url_text.startsWith("http")) {            panel.setDocument(url_text);        } else {            ref = new File(url_text).toURL();            panel.setDocument(ref.toExternalForm());        }        Uu.p("ref = " + ref);        Uu.p("url_text = " + url_text);    }