mouseListeners = new LinkedList<MouseInputListener>();
setLayout(null);
add(underlay, UnderlayLayer);
// Add a listener on the overlay to support autoscrolling:
autoscroller = new MouseMotionAdapter() {
public void mouseDragged(MouseEvent e) {
Rectangle r = new Rectangle(e.getX(), e.getY(), 1, 1);
scrollRectToVisible(r);
}
};