@Override
    public void mouseClicked(MouseEvent e)
    {
        if (SwingUtilities.isLeftMouseButton(e))
        {
            if (e.getComponent().equals(circle))
            {
                square.setSelected(false);
                ground.setSelected(false);
                if (circle.isSelected())
                {
                    pModel.setProperty(PRP_OBJECT_MODE, OBJ_CIRCLE);
                }
                else
                {
                    pModel.setProperty(PRP_OBJECT_MODE, null);
                }
            }
            else if (e.getComponent().equals(square))
            {
                circle.setSelected(false);
                ground.setSelected(false);
                if (square.isSelected())
                {
                    pModel.setProperty(PRP_OBJECT_MODE, OBJ_SQUARE);
                }
                else
                {
                    pModel.setProperty(PRP_OBJECT_MODE, null);
                }
            }
            else if (e.getComponent().equals(ground))
            {
                circle.setSelected(false);
                square.setSelected(false);
                if (ground.isSelected())
                {
                    pModel.setProperty(PRP_OBJECT_MODE, OBJ_GROUND);
                    
                }
                else
                {
                    pModel.setProperty(PRP_OBJECT_MODE, null);
                }
            }
        }
    }