private void addNodeListener(){
        algoTreeView.addMouseListener( new MouseAdapter() {
            public void mousePressed(MouseEvent e) {
                int selRow = algoTreeView.getRowForLocation(e.getX(), e.getY());
                TreePath selPath = algoTreeView.getPathForLocation(e.getX(), e.getY());

                if(selRow != -1) {
                    if(e.getClickCount() == 2) {
                        addRowToChoiceWindow(selPath);
                    }
                }
            }
        });
    }