setBounds(xLens, yLens, lensImage.getWidth(), lensImage.getHeight());
setBounds(xImageCanvas+xLens, yImageCanvas+yLens, lensImage.getWidth(), lensImage.getHeight());
    void paintLensImage(double f, Point p, int lensWidth, boolean painting,                         Color c, BufferedImage mainImage)    {        xLens = p.x-lensWidth/2;        yLens = p.y-lensWidth/2;                int w = (int) (lensWidth/(2*f));        xTopCorner = p.x-ViewerUIF.START-w;        yTopCorner = p.y-ViewerUIF.START-w;        int x = (int) ((p.x-ViewerUIF.START)*f)-lensWidth/2;        int y = (int) ((p.y-ViewerUIF.START)*f)-lensWidth/2;         lensImage = ImageFactory.getImage(mainImage, x,  y, lensWidth,                                             lensWidth, painting, c);        setPreferredSize(new Dimension(lensImage.getWidth(),                 lensImage.getHeight()));                        setBounds(xLens, yLens, lensImage.getWidth(), lensImage.getHeight());        //repaint();    }