private void initPanel() {
    final JPanel mainPanel = new JPanel(new BorderLayout());
    mainPanel.setBorder(new TitledBorder("Edit Out-degree Condition"));

    operatorBox.addItem("<");
    operatorBox.addItem("=");
    operatorBox.addItem(">");

    final JPanel operatorPanel = new JPanel(new BorderLayout());
    operatorPanel.setBorder(new EmptyBorder(5, 5, 5, 5));

    final JPanel inputPanel = new JPanel(new BorderLayout());
    inputPanel.setBorder(new EmptyBorder(5, 0, 5, 5));

    operatorPanel.add(operatorBox, BorderLayout.CENTER);
    inputPanel.add(inputField, BorderLayout.CENTER);

    final JPanel containerPanel = new JPanel(new BorderLayout());
    containerPanel.add(operatorPanel, BorderLayout.WEST);
    containerPanel.add(inputPanel, BorderLayout.CENTER);

    mainPanel.add(containerPanel, BorderLayout.NORTH);

    add(mainPanel, BorderLayout.CENTER);
  }
User interface for setting out-degree conditions.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/criteriadialog/conditions/outdegree/OutDegreeCriterionPanel.java