public void mousePressed(MouseEvent e) {    
    	if(!e.isPopupTrigger()) {
    		if (plotPanel.theGenoplot.getMouseMode() == MouseMode.LASSO) {
    			lastDragPoint = e.getPoint();
    			lasso = new Lasso(rescaleMouseClickX(lastDragPoint),rescaleMouseClickY(lastDragPoint));
    			weAreLassoing = true;
    		}
    		else {
    			super.mousePressed(e);
    		}        
    	}else{
			if (popup != null) {
		        if (plotPanel.theGenoplot.getMouseMode() == MouseMode.ZOOM) jrbZoom.setSelected(true);
		        if (plotPanel.theGenoplot.getMouseMode() == MouseMode.LASSO) jrbLasso.setSelected(true);
				displayPopupMenu(e.getX(), e.getY());
			}
		}
    }