@Override
    public void actionPerformed(final ActionEvent event) {
      if (event.getSource().equals(okButton)) {
        if (!validatePaths()) {
          CMessageBox.showInformation(
              window, "Illegal image file names. Please enter valid names.");
          return;
        }
        if (!confirmOverwrites()) {
          return;
        }

        okPressed = true;
      }
      dispose();
    }
Dialog to export the current view into a variety of formats.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/ExportViewDialog.java