public void mouseReleased(MouseEvent e)
    {
        removeMouseMotionListener(this);

        if (creationLien && enabled) {
            creationLien = false;
            ZElement cibleLien = chercheElement(e.getX(), e.getY());
            if (cibleLien != null) {
                lienTemp.setElement(cibleLien, Constantes.MCDENTITE2);
                x2 = e.getX();
                y2 = e.getY();
            }
            if (peutCreerLien(lienTemp.getElement(Constantes.MCDENTITE1), lienTemp
                    .getElement(Constantes.MCDENTITE2))){
                addLien(lienTemp);
            }
            else
                lienTemp.clearElement();
            
            repaint();
        } else if (enabled) {
            elementPress = null;
            if (arriveeCadreSelection != null) {
                selectionCourante.addAll(selectionTemporaire);
                selectionTemporaire.clear();
                departCadreSelection = null;
                arriveeCadreSelection = null;
            }
            repaint();
        }
        if (actionListener != null)
            actionListener.actionPerformed(new ActionEvent(this,
                    ActionEvent.ACTION_PERFORMED, ""));

        /* Correction Bug Graphique */
        if (getPreferredSize().height > getSize().height
                || getPreferredSize().width > getSize().width
        /*
         * || getPreferredSize().height < getSize().height ||
         * getPreferredSize().width < getSize().width
         */)
            this.setSize(getPreferredSize());

    }