public void removeArrowListener() {
        MouseListener[] mls = getMouseListeners();
        for (MouseListener l : mls) {
            if (l instanceof ArrowListener) {
                removeMouseListener(l);
            }
        }
        MouseMotionListener[] mmls = getMouseMotionListeners();
        for (MouseMotionListener l : mmls) {
            if (l instanceof ArrowListener) {
                removeMouseMotionListener(l);
            }
        }
    }