desc.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) {
desc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) {
    private void modelTreeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_modelTreeMouseClicked                if (MouseEvent.BUTTON3 == evt.getButton()||MouseEvent.BUTTON2 == evt.getButton()) {            try{                Object p = modelTree.getClosestPathForLocation(evt.getX(), evt.getY()).getLastPathComponent();                if (p instanceof AbstractDescriptionNode){                    AbstractDescriptionNode adn = (AbstractDescriptionNode)p;                    currentContextObject = p;                    contextMenu = adn.getContextMenu();                    JMenuItem desc = new JMenuItem();                    desc.addMouseListener(new java.awt.event.MouseAdapter() {                        public void mouseClicked(java.awt.event.MouseEvent evt) {                            DescriptionMenuClicked(evt);                        }                    });                    desc.setText("Description");                    contextMenu.add(desc);                    contextMenu.show( this, evt.getX()-treeScrollPane.getHorizontalScrollBar().getValue(), evt.getY()-treeScrollPane.getVerticalScrollBar().getValue() );                }            } catch(Exception e){System.out.println(e);}        } else {            displayDescription(modelTree.getSelectionPath().getLastPathComponent());        }            }//GEN-LAST:event_modelTreeMouseClicked