private JPanel createFilenameLinePanel(
      final String description,
      final JFormattedTextField textField,
      final String extension,
      final JCheckBox checkbox) {
    final JPanel panel = new JPanel(new BorderLayout());

    final JPanel leftSide = new JPanel(new BorderLayout());
    final JLabel descriptionLabel = new JLabel(description);
    descriptionLabel.setPreferredSize(new Dimension(150, 25));
    descriptionLabel.setMaximumSize(new Dimension(150, 25));
    leftSide.add(descriptionLabel, BorderLayout.WEST);
    textField.setPreferredSize(new Dimension(250, 25));
    leftSide.add(textField, BorderLayout.CENTER);

    final JPanel rightSide = new JPanel(new BorderLayout());
    final JLabel extensionLabel = new JLabel(extension);
    extensionLabel.setPreferredSize(new Dimension(65, 25));
    extensionLabel.setMaximumSize(new Dimension(65, 25));
    rightSide.add(extensionLabel, BorderLayout.WEST);
    rightSide.add(checkbox, BorderLayout.CENTER);

    leftSide.add(rightSide, BorderLayout.EAST);
    panel.add(leftSide, BorderLayout.NORTH);

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