public void dispose() {
    removeMouseListener(listener);
    removeMouseMotionListener(listener);
    removeKeyListener(listener);
    removeFocusListener(listener);

    caret.removeListener(listener);

    caret.stop();
  }
This method must be called before batch updating of registers.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/JRegisterView/JRegisterView.java