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);
}
}
public void hyperlinkUpdate(HyperlinkEvent e)
{
- if (e.getEventType() == EventType.ACTIVATED)
- {
- String url=null;
- try
- {
- url = e.getURL().toString();
- Desktop.showUrl(url);
- } catch (Exception x)
- {
- if (url!=null) {
- Cache.log.error("Couldn't handle string "+url+" as a URL.");
- }
- // ignore any exceptions due to dud links.
- }
-
- }
+ Desktop.hyperlinkUpdate(e);
}
}