private void init() {
    final JPanel panel = new JPanel(new BorderLayout());
    panel.setBorder(new EmptyBorder(5, 5, 5, 5));

    panel.add(createFilenamePanel(), BorderLayout.NORTH);
    panel.add(createButtonPanel(), BorderLayout.SOUTH);

    add(panel, BorderLayout.CENTER);

    pack();

    setPreferredSize(new Dimension(DIALOG_WIDTH, DIALOG_HEIGHT));
    setMinimumSize(new Dimension(DIALOG_WIDTH, DIALOG_HEIGHT));

    GuiHelper.centerChildToParent(getParent(), this, true);
  }
Save dialog for function diff views.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/SaveFunctionDiffViewDialog.java