private JPanel createButtonPanel() {
    final JPanel panel = new JPanel(new BorderLayout());
    panel.setBorder(new EmptyBorder(7, 5, 5, 10));

    final JPanel innerPanel = new JPanel(new GridLayout(1, 2, 5, 5));
    innerPanel.add(okButton);
    innerPanel.add(cancelButton);

    panel.add(innerPanel, BorderLayout.EAST);

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