SelectionMouseListener ma = new SelectionMouseListener(); view.addMouseListener(ma); view.addMouseMotionListener(ma);
    public void createActions() {        open_file.addActionListener(new ActionListener() {            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);                }            }        });        quit.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent evt) {                System.exit(0);            }        });    }