@Override
  public void dispose() {
    diffDatabaseFileName.getDocument().removeDocumentListener(documentListener);
    primaryExportFileName.getDocument().removeDocumentListener(documentListener);
    secondaryExportFileName.getDocument().removeDocumentListener(documentListener);

    diffDatabaseOverwrite.removeActionListener(checkBoxListener);
    primaryExportOverwrite.removeActionListener(checkBoxListener);
    secondaryExportOverwrite.removeActionListener(checkBoxListener);

    okButton.removeActionListener(buttonListener);
    cancelButton.removeActionListener(buttonListener);

    super.dispose();
  }
Save dialog for function diff views.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/SaveFunctionDiffViewDialog.java