try { FileDialog fd = new FileDialog(root.frame,"Open a local file",FileDialog.LOAD); fd.show(); String file = fd.getDirectory() + fd.getFile(); root.panel.loadPage(file); } catch (Exception ex) { logger.info("error:" + ex); }
JFrame frame = new JFrame(); frame.getContentPane().add(new DOMInspector(root.panel.view.doc)); frame.pack(); frame.setSize(250,500); frame.show();
            public void actionPerformed(ActionEvent evt) {                try {                    FileDialog fd = new FileDialog(root.frame,"Open a local file",FileDialog.LOAD);                    fd.show();                    String file = fd.getDirectory() + fd.getFile();                    root.panel.loadPage(file);                } catch (Exception ex) {                    logger.info("error:" + ex);                }            }