Index: applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java
===================================================================
--- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java	(revision 9494)
+++ applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java	(revision 9530)
@@ -119,3 +119,12 @@
 	}
 
+	public void mouseEntered(MouseEvent e) {
+	}
+
+	public void mouseExited(MouseEvent e) {
+	}
+
+	public void mouseMoved(MouseEvent e) {
+	}
+
 }
Index: applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapController.java
===================================================================
--- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapController.java	(revision 9494)
+++ applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapController.java	(revision 9530)
@@ -3,5 +3,4 @@
 //License: GPL. Copyright 2008 by Jan Peter Stotz
 
-import java.awt.event.MouseAdapter;
 import java.awt.event.MouseListener;
 import java.awt.event.MouseMotionListener;
@@ -20,5 +19,5 @@
  * @author Jan Peter Stotz
  */
-public abstract class JMapController extends MouseAdapter {
+public abstract class JMapController {
 
 	JMapViewer map;
@@ -26,7 +25,10 @@
 	public JMapController(JMapViewer map) {
 		this.map = map;
-		map.addMouseListener(this);
-		map.addMouseWheelListener(this);
-		map.addMouseMotionListener(this);
+		if (this instanceof MouseListener)
+			map.addMouseListener((MouseListener) this);
+		if (this instanceof MouseWheelListener)
+			map.addMouseWheelListener((MouseWheelListener) this);
+		if (this instanceof MouseMotionListener)
+			map.addMouseMotionListener((MouseMotionListener) this);
 	}
 
