panel.setDocument(new File("demos/photogallery/xhtml/gallery.xhtml").toURL());
panel.setDocument(new File("demos/photogallery/xhtml/gallery.xhtml").toURL().toExternalForm());
    public static void main(String[] args) throws Exception {                        Toolkit.getDefaultToolkit().setDynamicLayout(true);        XHTMLPanel panel = new XHTMLPanel();        Dimension size = new Dimension(200,200);        panel.setPreferredSize(size);        panel.setDocument(new File("demos/photogallery/xhtml/gallery.xhtml").toURL());                JScrollPane scroll = new JScrollPane(panel);                JFrame frame = new JFrame("PhotoGallery");                frame.getContentPane().add(scroll);        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        frame.pack();        frame.setSize(500,500);        frame.setVisible(true);    }