private JPanel createFilenamePanel() {
    final JPanel panel = new JPanel(new BorderLayout());
    panel.setBorder(
        BorderFactory.createCompoundBorder(new EmptyBorder(5, 5, 5, 5), new TitledBorder("")));

    final JPanel gridPanel = new JPanel(new GridLayout(3, 1, 5, 5));
    gridPanel.add(
        createFilenameLinePanel(
            "Diff Name:",
            diffDatabaseFileName,
            "." + Constants.BINDIFF_MATCHES_DB_EXTENSION,
            diffDatabaseOverwrite));
    gridPanel.add(
        createFilenameLinePanel(
            "Primary Export Name:",
            primaryExportFileName,
            "." + Constants.BINDIFF_BINEXPORT_EXTENSION,
            primaryExportOverwrite));
    gridPanel.add(
        createFilenameLinePanel(
            "Secondary Export Name:",
            secondaryExportFileName,
            "." + Constants.BINDIFF_BINEXPORT_EXTENSION,
            secondaryExportOverwrite));

    panel.add(gridPanel, BorderLayout.NORTH);

    return panel;
  }
Save dialog for function diff views.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/SaveFunctionDiffViewDialog.java