public void paint(Graphics g) {
Graphics2D g2D = (Graphics2D)g;
if (image == null) {

TextLayout layout = new TextLayout("Image Loading....", getFont(), g2D.getFontRenderContext());
Rectangle2D bounds = layout.getBounds();
System.out.println(bounds);
layout.draw(g2D, (int)(getWidth() - bounds.getWidth()) / 2, (int)(getHeight() - bounds.getHeight()) / 2);

try {
// ロードを待つ
tracker.waitForID(id);
} catch (InterruptedException e) {
e.printStackTrace();
}
tracker.removeImage(image, id);
}
g.drawImage(image, 0, 0, this);
}
}
以上がソースなのですがマウスのクリックされたイベントを取得するために1行目に
implements MouseListenerをつけるとエラーがでてしまいます。
なぜなのでしょうか・・・