Point p = new Point(e.getPoint()); view.resetLens(); if (!dragging && onOff && drawingArea.contains(p)) { dragging = true; drawLens(p); }
if (e.getClickCount() == 1 && click) { Point p = new Point(e.getPoint()); view.resetLens(); if (!dragging && onOff && drawingArea.contains(p)) { dragging = true; drawLens(p); } } else if (e.getClickCount() == 2 && !click) control.showInspector();
    public void mousePressed(MouseEvent e)    {        Point p = new Point(e.getPoint());        view.resetLens();        if (!dragging && onOff && drawingArea.contains(p)) {            dragging = true;            drawLens(p);        }    }