{ super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; setLocation(); paintXYFrame(g2D); g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
{ super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; setLocation();  control.setDrawingArea(x+ViewerUIF.START, y+ViewerUIF.START, (int)(image.getWidth()*magFactor), (int)(image.getHeight()*magFactor));
	public void paint(Graphics g)	{		super.paintComponent(g);		Graphics2D g2D = (Graphics2D) g;		setLocation();		paintXYFrame(g2D);		g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,							RenderingHints.VALUE_ANTIALIAS_ON);		g2D.setRenderingHint(RenderingHints.KEY_RENDERING,							RenderingHints.VALUE_RENDER_QUALITY);		g2D.setColor(Color.black);        if (displayImage != null)            g2D.drawImage(displayImage, null, ViewerUIF.START, ViewerUIF.START);	}