I have a problem with the rotation of an image. This is what I have tried, but it is not working.
Any help would be appreciated.
@Override
public void paintComponent(Graphics p) {
BufferedImage arrow = LoadImage("C:\\Users\\Pawel Celuch\\Desktop\\arrow.png");
super.paintComponent(p);
Graphics2D g2d = (Graphics2D) p;
g2d.drawImage(arrow, (int)x, (int)y+550, this);
}