LENGTH2, ""+(int) (realValue*LENGTH2), Color.GRAY);
LENGTH2, ""+(int) (realValue*LENGTH2)+" \u00B5m", Color.GRAY);
    public void paintComponent(Graphics g)    {        super.paintComponent(g);        Graphics2D g2D = (Graphics2D) g;        setLocation();        //Set bounds of the drawing area.        control.setImageArea(x+ViewerUIF.START, y+ViewerUIF.START,                (int)(image.getWidth()*itMng.getMagFactor()),                 (int)(image.getHeight()*itMng.getMagFactor()));        g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,                            RenderingHints.VALUE_ANTIALIAS_ON);        g2D.setRenderingHint(RenderingHints.KEY_RENDERING,                            RenderingHints.VALUE_RENDER_QUALITY);        g2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,                        RenderingHints.VALUE_INTERPOLATION_BILINEAR);        g2D.setColor(Color.black);        paintXYFrame(g2D);        if (realValue > 0)              paintScaleBar(g2D, ViewerUIF.START, 3*ViewerUIF.START/2+height,                         LENGTH2, ""+(int) (realValue*LENGTH2), Color.GRAY);        if (displayImage != null)            g2D.drawImage(displayImage, null, ViewerUIF.START, ViewerUIF.START);        //if (lensCanvas.lensImage != null)        //   g2D.drawImage(lensCanvas.lensImage, null, lensCanvas.xLens, lensCanvas.yLens);         }