String file = fd.getDirectory() + fd.getFile(); root.panel.loadPage(file);
if(fd.getFile() != null) { String url = new File(fd.getDirectory(),fd.getFile()).toURI().toURL().toString(); root.panel.loadPage(url); }
                    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);                        }                    }