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

    final JPanel inputPanel = new JPanel(new GridLayout(3, 1, 5, 5));
    inputPanel.setBorder(new TitledBorder(""));
    inputPanel.add(
        GuiUtils.createHorizontalNamedComponentPanel(
            "Name:", LABEL_WIDTH, workspaceName, ROW_HEIGHT));
    inputPanel.add(
        GuiUtils.createHorizontalNamedComponentPanel(
            "Location:", LABEL_WIDTH, workspaceDirectoryPanel, ROW_HEIGHT));
    inputPanel.add(
        GuiUtils.createHorizontalNamedComponentPanel(
            "", LABEL_WIDTH - 4, createDirectory, ROW_HEIGHT));

    panel.add(inputPanel, BorderLayout.NORTH);

    final JPanel buttonPanel = new JPanel(new BorderLayout());
    buttonPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
    final JPanel innerButtonPanel = new JPanel(new GridLayout(1, 2, 5, 5));
    innerButtonPanel.add(ok);
    innerButtonPanel.add(cancel);
    buttonPanel.add(defaultWorkspace, BorderLayout.WEST);
    buttonPanel.add(innerButtonPanel, BorderLayout.EAST);

    panel.add(buttonPanel, BorderLayout.SOUTH);

    add(panel, BorderLayout.CENTER);
  }
Dialog for creating new BinDiff workspaces.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/NewWorkspaceDialog.java