That compiles? Really? Huh, It shouldn''t, unless that isn''t complete code. You need to implement ALL of the methods of an interface for it to compile correctly.
You should have these methods in there as well, for it to compile properly.
void mouseClicked(MouseEvent e) {}void mouseEntered(MouseEvent e) {}void mouseExited(MouseEvent e) {}void mousePressed(MouseEvent e) {}
|