Program: 185236
Project: 185236
Buggy source:
private JPanel createCreationPanel(boolean includeRuleTable){
  JPanel creationPanel=new JPanel();
  creationPanel.setLayout(new GridBagLayout());
  creationPanel.setBorder(BorderFactory.createTitledBorder(bundle.getString("String_Node_Str")));
  JPanel creationInnerPanel=new JPanel();
  GridBagConstraints innerPanelConstraints=new GridBagConstraints();
  innerPanelConstraints.fill=GridBagConstraints.NONE;
  innerPanelConstraints.anchor=GridBagConstraints.LINE_START;
  innerPanelConstraints.weighty=1;
  innerPanelConstraints.weightx=0;
  innerPanelConstraints.ipadx=1;
  innerPanelConstraints.gridx=0;
  innerPanelConstraints.gridy=1;
  creationPanel.add(creationInnerPanel,innerPanelConstraints);
  JPanel checkBoxPanel=new JPanel(new FlowLayout(FlowLayout.LEFT));
  passThroughCheckBox=new JCheckBox();
  passThroughCheckBox.setName(bundle.getString("String_Node_Str"));
  if (multiViewManifestation.getTelemetry().size() != 1) {
    passThroughCheckBox.setEnabled(false);
  }
  if (multiViewManifestation.getMulti().getData().isPassThrough()) {
    passThroughCheckBox.setSelected(true);
  }
  passThroughCheckBox.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      AbstractButton abstractButton=(AbstractButton)e.getSource();
      if (abstractButton.getModel().isSelected()) {
        multiViewManifestation.getMulti().getData().setPassThrough(true);
        multiViewManifestation.getMulti().getData().setPassThroughParameterId(multiViewManifestation.getTelemetry().get(0).getExternalKey());
        addExpButton.setEnabled(false);
        deleteExpButton.setEnabled(false);
        upOneButton.setEnabled(false);
        downOneButton.setEnabled(false);
      }
 else {
        multiViewManifestation.getMulti().getData().setPassThrough(false);
        multiViewManifestation.getMulti().getData().setPassThroughParameterId(null);
        addExpButton.setEnabled(true);
        deleteExpButton.setEnabled(true);
        upOneButton.setEnabled(true);
        downOneButton.setEnabled(true);
      }
      multiViewManifestation.fireFocusPersist();
    }
  }
);
  checkBoxPanel.add(passThroughCheckBox);
  checkBoxPanel.add(new JLabel(bundle.getString("String_Node_Str")));
  creationInnerPanel.setLayout(new GridBagLayout());
  addExpButton=new JButton(bundle.getString("String_Node_Str"));
  deleteExpButton=new JButton(bundle.getString("String_Node_Str"));
  upOneButton=new JButton(bundle.getString("String_Node_Str"));
  downOneButton=new JButton(bundle.getString("String_Node_Str"));
  applyButton=new JButton(bundle.getString("String_Node_Str"));
  addExpButton.setName(bundle.getString("String_Node_Str"));
  deleteExpButton.setName(bundle.getString("String_Node_Str"));
  upOneButton.setName(bundle.getString("String_Node_Str"));
  downOneButton.setName(bundle.getString("String_Node_Str"));
  applyButton.setName(bundle.getString("String_Node_Str"));
  addExpButton.setToolTipText(bundle.getString("String_Node_Str"));
  deleteExpButton.setToolTipText(bundle.getString("String_Node_Str"));
  upOneButton.setToolTipText(bundle.getString("String_Node_Str"));
  downOneButton.setToolTipText(bundle.getString("String_Node_Str"));
  applyButton.setToolTipText(bundle.getString("String_Node_Str"));
  addExpButton.setOpaque(false);
  deleteExpButton.setOpaque(false);
  upOneButton.setOpaque(false);
  downOneButton.setOpaque(false);
  applyButton.setOpaque(false);
  addExpButton.setFocusPainted(false);
  deleteExpButton.setFocusPainted(false);
  upOneButton.setFocusPainted(false);
  downOneButton.setFocusPainted(false);
  applyButton.setFocusPainted(false);
  addExpButton.setSize(200,200);
  addExpButton.setContentAreaFilled(true);
  deleteExpButton.setSize(200,200);
  deleteExpButton.setContentAreaFilled(true);
  upOneButton.setSize(200,10);
  upOneButton.setContentAreaFilled(true);
  downOneButton.setSize(200,10);
  downOneButton.setContentAreaFilled(true);
  applyButton.setSize(200,10);
  applyButton.setContentAreaFilled(true);
  applyButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      if (!valueTextField.getText().isEmpty() && !displayTextField.getText().isEmpty() && multiViewManifestation.getSelectedExpression() != null) {
        MultiRuleExpression newExp=new MultiRuleExpression(setLogicStrings.get(ifComboBox.getSelectedItem().toString()),multiViewManifestation.getSelectedExpression().getPUIs().split(MultiRuleExpression.parameterDelimiter,0),bundle.getString("String_Node_Str") + parameterComboBox.getSelectedItem().toString(),opComboBox.getSelectedItem().toString(),valueTextField.getText(),displayTextField.getText(),ruleNameTextField.getText());
        controller.notifyRuleUpdated(multiViewManifestation.getExpressions().indexOf(multiViewManifestation.getSelectedExpression()),multiViewManifestation.getExpressions(),newExp);
        multiViewManifestation.getMulti().getData().setCode(multiViewManifestation.getExpressions().toString());
        multiViewManifestation.fireFocusPersist();
        applyButton.setEnabled(false);
        multiViewManifestation.setSelectedExpression(newExp);
      }
    }
  }
);
  applyButton.setEnabled(false);
  addExpButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      if (listenersEnabled) {
        ruleTablePanel.setVisible(true);
        bottomPanel.setVisible(true);
        String valueText=valueTextField.getText().isEmpty() ? bundle.getString("String_Node_Str") : valueTextField.getText();
        String displayText=displayTextField.getText().isEmpty() ? bundle.getString("String_Node_Str") : displayTextField.getText();
        MultiRuleExpression newExp=new MultiRuleExpression(setLogicStrings.get(ifComboBox.getSelectedItem().toString()),addDataFeedPrefixes(getTelemetryIDs()),bundle.getString("String_Node_Str") + parameterComboBox.getSelectedItem().toString(),opComboBox.getSelectedItem().toString(),valueText,displayText,ruleNameTextField.getText());
        controller.notifyExpressionAdded(newExp,multiViewManifestation.getExpressions());
        multiViewManifestation.getMulti().getData().setCode(multiViewManifestation.getExpressions().toString());
        multiViewManifestation.fireFocusPersist();
        multiViewManifestation.setSelectedExpression(newExp);
        loadRuleButtonSettings();
      }
    }
  }
);
  deleteExpButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      MultiRuleExpression selectedExpression=multiViewManifestation.getSelectedExpression();
      if (listenersEnabled) {
        controller.notifyExpressionDeleted(selectedExpression,multiViewManifestation.getExpressions());
        if (multiViewManifestation.getExpressions().size() == 0) {
          ruleTablePanel.setVisible(false);
          bottomPanel.setVisible(false);
        }
        multiViewManifestation.getMulti().getData().setCode(multiViewManifestation.getExpressions().toString());
        multiViewManifestation.fireFocusPersist();
        loadRuleButtonSettings();
      }
    }
  }
);
  upOneButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      MultiRuleExpression selectedExpression=multiViewManifestation.getSelectedExpression();
      if (listenersEnabled) {
        controller.notifyMovedUpOne(selectedExpression,multiViewManifestation.getExpressions());
        multiViewManifestation.getMulti().getData().setCode(multiViewManifestation.getExpressions().toString());
        multiViewManifestation.fireFocusPersist();
        multiViewManifestation.setSelectedExpression(selectedExpression);
      }
    }
  }
);
  downOneButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      MultiRuleExpression selectedExpression=multiViewManifestation.getSelectedExpression();
      if (listenersEnabled) {
        controller.notifyMovedDownOne(selectedExpression,multiViewManifestation.getExpressions());
        multiViewManifestation.getMulti().getData().setCode(multiViewManifestation.getExpressions().toString());
        multiViewManifestation.fireFocusPersist();
        multiViewManifestation.setSelectedExpression(selectedExpression);
      }
    }
  }
);
  ruleResultTextField=new JTextField();
  ruleResultTextField.setEditable(false);
  ruleResultTextField.setBackground(Color.WHITE);
  ruleResultTextField.setPreferredSize(new Dimension(100,20));
  GridBagConstraints addExpButtonConstraints=new GridBagConstraints();
  addExpButtonConstraints.fill=GridBagConstraints.NONE;
  addExpButtonConstraints.anchor=GridBagConstraints.LINE_START;
  addExpButtonConstraints.weighty=1;
  addExpButtonConstraints.weightx=0;
  addExpButtonConstraints.ipadx=1;
  addExpButtonConstraints.gridx=0;
  addExpButtonConstraints.gridy=0;
  creationInnerPanel.add(addExpButton,addExpButtonConstraints);
  GridBagConstraints deleteExpButtonConstraints=new GridBagConstraints();
  deleteExpButtonConstraints.fill=GridBagConstraints.NONE;
  deleteExpButtonConstraints.anchor=GridBagConstraints.LINE_START;
  deleteExpButtonConstraints.weighty=1;
  deleteExpButtonConstraints.weightx=0;
  deleteExpButtonConstraints.ipadx=1;
  deleteExpButtonConstraints.gridx=1;
  deleteExpButtonConstraints.gridy=0;
  creationInnerPanel.add(deleteExpButton,deleteExpButtonConstraints);
  GridBagConstraints addAboveButtonConstraints=new GridBagConstraints();
  addAboveButtonConstraints.fill=GridBagConstraints.NONE;
  addAboveButtonConstraints.anchor=GridBagConstraints.LINE_START;
  addAboveButtonConstraints.weighty=1;
  addAboveButtonConstraints.weightx=0;
  addAboveButtonConstraints.ipadx=1;
  addAboveButtonConstraints.gridx=2;
  addAboveButtonConstraints.gridy=0;
  creationInnerPanel.add(upOneButton,addAboveButtonConstraints);
  GridBagConstraints addBelowButtonConstraints=new GridBagConstraints();
  addBelowButtonConstraints.fill=GridBagConstraints.NONE;
  addBelowButtonConstraints.anchor=GridBagConstraints.LINE_START;
  addBelowButtonConstraints.weighty=1;
  addBelowButtonConstraints.weightx=1;
  addBelowButtonConstraints.ipadx=1;
  addBelowButtonConstraints.gridx=3;
  addBelowButtonConstraints.gridy=0;
  creationInnerPanel.add(downOneButton,addBelowButtonConstraints);
  GridBagConstraints checkBoxPanelConstraints=new GridBagConstraints();
  checkBoxPanelConstraints.fill=GridBagConstraints.NONE;
  checkBoxPanelConstraints.anchor=GridBagConstraints.LINE_START;
  checkBoxPanelConstraints.weighty=1;
  checkBoxPanelConstraints.weightx=1;
  checkBoxPanelConstraints.ipadx=1;
  checkBoxPanelConstraints.gridx=5;
  checkBoxPanelConstraints.gridy=0;
  creationInnerPanel.add(checkBoxPanel,checkBoxPanelConstraints);
  if (includeRuleTable) {
    GridBagConstraints rulePanelConstraints=new GridBagConstraints();
    rulePanelConstraints.fill=GridBagConstraints.NONE;
    rulePanelConstraints.anchor=GridBagConstraints.LINE_START;
    rulePanelConstraints.weighty=1;
    rulePanelConstraints.weightx=1;
    rulePanelConstraints.ipadx=1;
    rulePanelConstraints.gridx=0;
    rulePanelConstraints.gridy=2;
    creationPanel.add(createRuleTablePanel(),rulePanelConstraints);
    bottomPanel=new JPanel(new FlowLayout(FlowLayout.RIGHT));
    bottomPanel.add(new JLabel(bundle.getString("String_Node_Str")));
    bottomPanel.add(ruleResultTextField);
    bottomPanel.add(applyButton);
    bottomPanel.setPreferredSize(new Dimension((int)ruleTablePanel.getPreferredSize().getWidth(),50));
    GridBagConstraints rulePanelConstraints2=new GridBagConstraints();
    rulePanelConstraints2.fill=GridBagConstraints.NONE;
    rulePanelConstraints2.anchor=GridBagConstraints.LINE_START;
    rulePanelConstraints2.weighty=1;
    rulePanelConstraints2.weightx=1;
    rulePanelConstraints2.ipadx=1;
    rulePanelConstraints2.gridx=0;
    rulePanelConstraints2.gridy=3;
    creationPanel.add(bottomPanel,rulePanelConstraints2);
  }
  return creationPanel;
}

Fixed version (ground truth):
private JPanel createCreationPanel(boolean includeRuleTable){
  JPanel creationPanel=new JPanel();
  creationPanel.setLayout(new GridBagLayout());
  creationPanel.setBorder(BorderFactory.createTitledBorder(bundle.getString("String_Node_Str")));
  JPanel creationInnerPanel=new JPanel();
  GridBagConstraints innerPanelConstraints=new GridBagConstraints();
  innerPanelConstraints.fill=GridBagConstraints.NONE;
  innerPanelConstraints.anchor=GridBagConstraints.LINE_START;
  innerPanelConstraints.weighty=1;
  innerPanelConstraints.weightx=0;
  innerPanelConstraints.ipadx=1;
  innerPanelConstraints.gridx=0;
  innerPanelConstraints.gridy=1;
  creationPanel.add(creationInnerPanel,innerPanelConstraints);
  JPanel checkBoxPanel=new JPanel(new FlowLayout(FlowLayout.LEFT));
  passThroughCheckBox=new JCheckBox();
  passThroughCheckBox.setName(bundle.getString("String_Node_Str"));
  if (multiViewManifestation.getTelemetry().size() != 1) {
    passThroughCheckBox.setEnabled(false);
  }
  if (multiViewManifestation.getMulti().getData().isPassThrough()) {
    passThroughCheckBox.setSelected(true);
  }
  passThroughCheckBox.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      AbstractButton abstractButton=(AbstractButton)e.getSource();
      if (abstractButton.getModel().isSelected()) {
        multiViewManifestation.getMulti().getData().setPassThrough(true);
        multiViewManifestation.getMulti().getData().setPassThroughParameterId(multiViewManifestation.getTelemetry().get(0).getCapability(FeedProvider.class).getSubscriptionId());
        addExpButton.setEnabled(false);
        deleteExpButton.setEnabled(false);
        upOneButton.setEnabled(false);
        downOneButton.setEnabled(false);
      }
 else {
        multiViewManifestation.getMulti().getData().setPassThrough(false);
        multiViewManifestation.getMulti().getData().setPassThroughParameterId(null);
        addExpButton.setEnabled(true);
        deleteExpButton.setEnabled(true);
        upOneButton.setEnabled(true);
        downOneButton.setEnabled(true);
      }
      multiViewManifestation.fireFocusPersist();
    }
  }
);
  checkBoxPanel.add(passThroughCheckBox);
  checkBoxPanel.add(new JLabel(bundle.getString("String_Node_Str")));
  creationInnerPanel.setLayout(new GridBagLayout());
  addExpButton=new JButton(bundle.getString("String_Node_Str"));
  deleteExpButton=new JButton(bundle.getString("String_Node_Str"));
  upOneButton=new JButton(bundle.getString("String_Node_Str"));
  downOneButton=new JButton(bundle.getString("String_Node_Str"));
  applyButton=new JButton(bundle.getString("String_Node_Str"));
  addExpButton.setName(bundle.getString("String_Node_Str"));
  deleteExpButton.setName(bundle.getString("String_Node_Str"));
  upOneButton.setName(bundle.getString("String_Node_Str"));
  downOneButton.setName(bundle.getString("String_Node_Str"));
  applyButton.setName(bundle.getString("String_Node_Str"));
  addExpButton.setToolTipText(bundle.getString("String_Node_Str"));
  deleteExpButton.setToolTipText(bundle.getString("String_Node_Str"));
  upOneButton.setToolTipText(bundle.getString("String_Node_Str"));
  downOneButton.setToolTipText(bundle.getString("String_Node_Str"));
  applyButton.setToolTipText(bundle.getString("String_Node_Str"));
  addExpButton.setOpaque(false);
  deleteExpButton.setOpaque(false);
  upOneButton.setOpaque(false);
  downOneButton.setOpaque(false);
  applyButton.setOpaque(false);
  addExpButton.setFocusPainted(false);
  deleteExpButton.setFocusPainted(false);
  upOneButton.setFocusPainted(false);
  downOneButton.setFocusPainted(false);
  applyButton.setFocusPainted(false);
  addExpButton.setSize(200,200);
  addExpButton.setContentAreaFilled(true);
  deleteExpButton.setSize(200,200);
  deleteExpButton.setContentAreaFilled(true);
  upOneButton.setSize(200,10);
  upOneButton.setContentAreaFilled(true);
  downOneButton.setSize(200,10);
  downOneButton.setContentAreaFilled(true);
  applyButton.setSize(200,10);
  applyButton.setContentAreaFilled(true);
  applyButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      if (!valueTextField.getText().isEmpty() && !displayTextField.getText().isEmpty() && multiViewManifestation.getSelectedExpression() != null) {
        MultiRuleExpression newExp=new MultiRuleExpression(setLogicStrings.get(ifComboBox.getSelectedItem().toString()),multiViewManifestation.getSelectedExpression().getPUIs().split(MultiRuleExpression.parameterDelimiter,0),bundle.getString("String_Node_Str") + parameterComboBox.getSelectedItem().toString(),opComboBox.getSelectedItem().toString(),valueTextField.getText(),displayTextField.getText(),ruleNameTextField.getText());
        controller.notifyRuleUpdated(multiViewManifestation.getExpressions().indexOf(multiViewManifestation.getSelectedExpression()),multiViewManifestation.getExpressions(),newExp);
        multiViewManifestation.getMulti().getData().setCode(multiViewManifestation.getExpressions().toString());
        multiViewManifestation.fireFocusPersist();
        applyButton.setEnabled(false);
        multiViewManifestation.setSelectedExpression(newExp);
      }
    }
  }
);
  applyButton.setEnabled(false);
  addExpButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      if (listenersEnabled) {
        ruleTablePanel.setVisible(true);
        bottomPanel.setVisible(true);
        String valueText=valueTextField.getText().isEmpty() ? bundle.getString("String_Node_Str") : valueTextField.getText();
        String displayText=displayTextField.getText().isEmpty() ? bundle.getString("String_Node_Str") : displayTextField.getText();
        MultiRuleExpression newExp=new MultiRuleExpression(setLogicStrings.get(ifComboBox.getSelectedItem().toString()),addDataFeedPrefixes(getTelemetryIDs()),bundle.getString("String_Node_Str") + parameterComboBox.getSelectedItem().toString(),opComboBox.getSelectedItem().toString(),valueText,displayText,ruleNameTextField.getText());
        controller.notifyExpressionAdded(newExp,multiViewManifestation.getExpressions());
        multiViewManifestation.getMulti().getData().setCode(multiViewManifestation.getExpressions().toString());
        multiViewManifestation.fireFocusPersist();
        multiViewManifestation.setSelectedExpression(newExp);
        loadRuleButtonSettings();
      }
    }
  }
);
  deleteExpButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      MultiRuleExpression selectedExpression=multiViewManifestation.getSelectedExpression();
      if (listenersEnabled) {
        controller.notifyExpressionDeleted(selectedExpression,multiViewManifestation.getExpressions());
        if (multiViewManifestation.getExpressions().size() == 0) {
          ruleTablePanel.setVisible(false);
          bottomPanel.setVisible(false);
        }
        multiViewManifestation.getMulti().getData().setCode(multiViewManifestation.getExpressions().toString());
        multiViewManifestation.fireFocusPersist();
        loadRuleButtonSettings();
      }
    }
  }
);
  upOneButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      MultiRuleExpression selectedExpression=multiViewManifestation.getSelectedExpression();
      if (listenersEnabled) {
        controller.notifyMovedUpOne(selectedExpression,multiViewManifestation.getExpressions());
        multiViewManifestation.getMulti().getData().setCode(multiViewManifestation.getExpressions().toString());
        multiViewManifestation.fireFocusPersist();
        multiViewManifestation.setSelectedExpression(selectedExpression);
      }
    }
  }
);
  downOneButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      MultiRuleExpression selectedExpression=multiViewManifestation.getSelectedExpression();
      if (listenersEnabled) {
        controller.notifyMovedDownOne(selectedExpression,multiViewManifestation.getExpressions());
        multiViewManifestation.getMulti().getData().setCode(multiViewManifestation.getExpressions().toString());
        multiViewManifestation.fireFocusPersist();
        multiViewManifestation.setSelectedExpression(selectedExpression);
      }
    }
  }
);
  ruleResultTextField=new JTextField();
  ruleResultTextField.setEditable(false);
  ruleResultTextField.setBackground(Color.WHITE);
  ruleResultTextField.setPreferredSize(new Dimension(100,20));
  GridBagConstraints addExpButtonConstraints=new GridBagConstraints();
  addExpButtonConstraints.fill=GridBagConstraints.NONE;
  addExpButtonConstraints.anchor=GridBagConstraints.LINE_START;
  addExpButtonConstraints.weighty=1;
  addExpButtonConstraints.weightx=0;
  addExpButtonConstraints.ipadx=1;
  addExpButtonConstraints.gridx=0;
  addExpButtonConstraints.gridy=0;
  creationInnerPanel.add(addExpButton,addExpButtonConstraints);
  GridBagConstraints deleteExpButtonConstraints=new GridBagConstraints();
  deleteExpButtonConstraints.fill=GridBagConstraints.NONE;
  deleteExpButtonConstraints.anchor=GridBagConstraints.LINE_START;
  deleteExpButtonConstraints.weighty=1;
  deleteExpButtonConstraints.weightx=0;
  deleteExpButtonConstraints.ipadx=1;
  deleteExpButtonConstraints.gridx=1;
  deleteExpButtonConstraints.gridy=0;
  creationInnerPanel.add(deleteExpButton,deleteExpButtonConstraints);
  GridBagConstraints addAboveButtonConstraints=new GridBagConstraints();
  addAboveButtonConstraints.fill=GridBagConstraints.NONE;
  addAboveButtonConstraints.anchor=GridBagConstraints.LINE_START;
  addAboveButtonConstraints.weighty=1;
  addAboveButtonConstraints.weightx=0;
  addAboveButtonConstraints.ipadx=1;
  addAboveButtonConstraints.gridx=2;
  addAboveButtonConstraints.gridy=0;
  creationInnerPanel.add(upOneButton,addAboveButtonConstraints);
  GridBagConstraints addBelowButtonConstraints=new GridBagConstraints();
  addBelowButtonConstraints.fill=GridBagConstraints.NONE;
  addBelowButtonConstraints.anchor=GridBagConstraints.LINE_START;
  addBelowButtonConstraints.weighty=1;
  addBelowButtonConstraints.weightx=1;
  addBelowButtonConstraints.ipadx=1;
  addBelowButtonConstraints.gridx=3;
  addBelowButtonConstraints.gridy=0;
  creationInnerPanel.add(downOneButton,addBelowButtonConstraints);
  GridBagConstraints checkBoxPanelConstraints=new GridBagConstraints();
  checkBoxPanelConstraints.fill=GridBagConstraints.NONE;
  checkBoxPanelConstraints.anchor=GridBagConstraints.LINE_START;
  checkBoxPanelConstraints.weighty=1;
  checkBoxPanelConstraints.weightx=1;
  checkBoxPanelConstraints.ipadx=1;
  checkBoxPanelConstraints.gridx=5;
  checkBoxPanelConstraints.gridy=0;
  creationInnerPanel.add(checkBoxPanel,checkBoxPanelConstraints);
  if (includeRuleTable) {
    GridBagConstraints rulePanelConstraints=new GridBagConstraints();
    rulePanelConstraints.fill=GridBagConstraints.NONE;
    rulePanelConstraints.anchor=GridBagConstraints.LINE_START;
    rulePanelConstraints.weighty=1;
    rulePanelConstraints.weightx=1;
    rulePanelConstraints.ipadx=1;
    rulePanelConstraints.gridx=0;
    rulePanelConstraints.gridy=2;
    creationPanel.add(createRuleTablePanel(),rulePanelConstraints);
    bottomPanel=new JPanel(new FlowLayout(FlowLayout.RIGHT));
    bottomPanel.add(new JLabel(bundle.getString("String_Node_Str")));
    bottomPanel.add(ruleResultTextField);
    bottomPanel.add(applyButton);
    bottomPanel.setPreferredSize(new Dimension((int)ruleTablePanel.getPreferredSize().getWidth(),50));
    GridBagConstraints rulePanelConstraints2=new GridBagConstraints();
    rulePanelConstraints2.fill=GridBagConstraints.NONE;
    rulePanelConstraints2.anchor=GridBagConstraints.LINE_START;
    rulePanelConstraints2.weighty=1;
    rulePanelConstraints2.weightx=1;
    rulePanelConstraints2.ipadx=1;
    rulePanelConstraints2.gridx=0;
    rulePanelConstraints2.gridy=3;
    creationPanel.add(bottomPanel,rulePanelConstraints2);
  }
  return creationPanel;
}