ImageIcon tmpImage = ImageUtils.rotateImageIcon(currentImage, currentPicture.getAngle(), currentPicture.isFlipped(), this); tmpImage.paintIcon(getContentPane(), g, getRootPane().getLocation().x, getRootPane().getLocation().y);
ImageIcon tmpImage = ImageUtils.rotateImageIcon(currentImage, currentPicture.getAngle(), currentPicture.isFlipped(), this); JRootPane rootPane = getRootPane(); tmpImage.paintIcon(getContentPane(), g, rootPane.getLocation().x + (rootPane.getWidth() - tmpImage.getIconWidth()) / 2, rootPane.getLocation().y + (rootPane.getHeight() - tmpImage.getIconHeight()) / 2);
	public void paint(Graphics g) {		g.clearRect(0, 0, getSize().width, getSize().height);		if (currentImage != null) {			ImageIcon tmpImage = ImageUtils.rotateImageIcon(currentImage, currentPicture.getAngle(), currentPicture.isFlipped(), this);			tmpImage.paintIcon(getContentPane(), g, getRootPane().getLocation().x, getRootPane().getLocation().y);		}	}