I've been trying to make an image rotate in a panel. I did it. But also i want the image to make a translation.
Here is the code i tryed at paintComponent() :
Graphics2D g2 = (Graphics2D) g ;
AffineTransform at = new AffineTransform() ;
// at.rotate ( angle in radians ) ;
at.rotate( this.getAngulo(1, 1) ) ;
g2.drawImage(imgemFlecha, at, this);
I cant change image x,y doing this drawImage(). I want to make that change.
Any suggestions ?