this.title = title;
setInfoText(info);
- java.net.URL url = getClass().getResource("/images/logo.gif");
+ java.net.URL url = getClass().getResource("/images/logo_v2_square.jpg");
image = java.awt.Toolkit.getDefaultToolkit().createImage(url);
MediaTracker mt = new MediaTracker(this);
if (image != null)
{
- g.rotate(Math.toRadians(angle), 28, 28);
+ int x=image.getWidth(this)/2,y=image.getHeight(this)/2;
+ g.rotate(Math.toRadians(angle), 10+x, 10+y);
g.drawImage(image, 10, 10, this);
- g.rotate(-Math.toRadians(angle), 28, 28);
+ g.rotate(-Math.toRadians(angle), 10+x, 10+y);
}
}