lens.setZoomWindowLocation(this.getX()+this.getWidth(), this.getY());
lens.setZoomWindowLocation(getX()+getWidth(), getY());
    void setLensVisible(boolean b)    {        if (lens==null)         	lens = new LensComponent(this);        if (b==true)        {            if (model.getMaxX() < lens.getLensUI().getWidth() ||                 model.getMaxY() < lens.getLensUI().getHeight())                    return;            if (firstTimeLensShown)            {                firstTimeLensShown = false;                int lensX = model.getMaxX()/2-lens.getLensUI().getWidth()/2;                int lensY = model.getMaxY()/2-lens.getLensUI().getHeight()/2;                if (lensX+lens.getLensUI().getWidth() > model.getMaxX())                    lensX = model.getMaxX()-lens.getLensUI().getWidth();                if (lensY+lens.getLensUI().getHeight() > model.getMaxY())                    lensY = model.getMaxY()-lens.getLensUI().getHeight();                lens.setImageZoomFactor((float)model.getZoomFactor());                lens.setLensLocation(lensX, lensY);                lens.setXYPixelMicron(model.getPixelsSizeX(),                                     model.getPixelsSizeY());                model.getBrowser().addComponent(lens.getLensUI());                lens.setZoomWindowLocation(this.getX()+this.getWidth(),                 												this.getY());            }            lens.setImageZoomFactor((float) model.getZoomFactor());            lens.setPlaneImage(model.getRenderedImage());            lens.setLensPreferredColour();            lens.setVisible(b);        } else            lens.setVisible(b);        this.repaint();    }