Program: 12102
Project: 12102
Buggy source:
private static JPanel createSensitivityPanel(final ConfigurationPart dataContext){
  JPanel panel=new JPanel(new GridBagLayout());
  GridBagConstraints gridConstraints=new GridBagConstraints();
  gridConstraints.fill=GridBagConstraints.HORIZONTAL;
  gridConstraints.insets=new Insets(5,0,0,0);
  gridConstraints.weightx=1;
  gridConstraints.gridy=0;
  panel.add(new JLabel("String_Node_Str"),gridConstraints);
  final JSlider lookHorizontalSlider=new JSlider();
  lookHorizontalSlider.setMajorTickSpacing(5);
  lookHorizontalSlider.setMinorTickSpacing(1);
  lookHorizontalSlider.setPaintTicks(true);
  lookHorizontalSlider.setPaintLabels(true);
  lookHorizontalSlider.setSnapToTicks(true);
  lookHorizontalSlider.setValue(dataContext.getMouseMode1SensitivityX());
  lookHorizontalSlider.setMinimum(0);
  lookHorizontalSlider.setMaximum(40);
  lookHorizontalSlider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      dataContext.setMouseMode1SensitivityX(lookHorizontalSlider.getValue());
    }
  }
);
  gridConstraints.gridy=1;
  panel.add(lookHorizontalSlider,gridConstraints);
  final JSlider lookVerticalSlider=new JSlider();
  lookVerticalSlider.setMajorTickSpacing(5);
  lookVerticalSlider.setMinorTickSpacing(1);
  lookVerticalSlider.setPaintTicks(true);
  lookVerticalSlider.setPaintLabels(true);
  lookVerticalSlider.setSnapToTicks(true);
  lookVerticalSlider.setValue(dataContext.getMouseMode1SensitivityY());
  lookVerticalSlider.setMinimum(0);
  lookVerticalSlider.setMaximum(40);
  lookVerticalSlider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      dataContext.setMouseMode1SensitivityY(lookVerticalSlider.getValue());
    }
  }
);
  gridConstraints.gridy=2;
  panel.add(lookVerticalSlider,gridConstraints);
  gridConstraints.gridy=3;
  panel.add(new JLabel("String_Node_Str"),gridConstraints);
  final JSlider lookMouseHorizontalSlider=new JSlider();
  lookMouseHorizontalSlider.setMajorTickSpacing(5);
  lookMouseHorizontalSlider.setMinorTickSpacing(1);
  lookMouseHorizontalSlider.setPaintTicks(true);
  lookMouseHorizontalSlider.setPaintLabels(true);
  lookMouseHorizontalSlider.setSnapToTicks(true);
  lookMouseHorizontalSlider.setMinimum(1);
  lookMouseHorizontalSlider.setMaximum(40);
  lookMouseHorizontalSlider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
    }
  }
);
  gridConstraints.gridy=4;
  panel.add(lookMouseHorizontalSlider,gridConstraints);
  final JSlider lookMouseVerticalSlider=new JSlider();
  lookMouseVerticalSlider.setMajorTickSpacing(5);
  lookMouseVerticalSlider.setMinorTickSpacing(1);
  lookMouseVerticalSlider.setPaintTicks(true);
  lookMouseVerticalSlider.setPaintLabels(true);
  lookMouseVerticalSlider.setSnapToTicks(true);
  lookMouseVerticalSlider.setMinimum(0);
  lookMouseVerticalSlider.setMaximum(40);
  lookMouseVerticalSlider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
    }
  }
);
  gridConstraints.gridy=5;
  panel.add(lookMouseVerticalSlider,gridConstraints);
  final JCheckBox invertPitchCheckBox=new JCheckBox();
  invertPitchCheckBox.setAction(new SimpleAction(){
    @Override public void actionPerformed(    ActionEvent e){
      dataContext.setLookInverted(invertPitchCheckBox.isSelected());
    }
  }
);
  invertPitchCheckBox.setText("String_Node_Str");
  invertPitchCheckBox.setSelected(dataContext.isLookInverted());
  gridConstraints.gridy=6;
  panel.add(invertPitchCheckBox,gridConstraints);
  JPanel fillerPanel=new JPanel();
  Random rand=new Random(System.currentTimeMillis());
  int niceSettingsssYouHaveThere=rand.nextInt(4);
  if (niceSettingsssYouHaveThere == 0) {
    JLabel iconLabel=new JLabel();
    URL iconUrl=ConfigurationView.class.getClassLoader().getResource(ContentResources.CHROME_SENSITIVITYPANEL_FILLER);
    ImageIcon icon=new ImageIcon(iconUrl);
    Image newimg=icon.getImage().getScaledInstance(120,120,java.awt.Image.SCALE_SMOOTH);
    iconLabel.setIcon(new ImageIcon(newimg));
    fillerPanel.add(iconLabel,BorderLayout.CENTER);
  }
  gridConstraints.gridy=7;
  gridConstraints.weighty=1;
  panel.add(fillerPanel,gridConstraints);
  return panel;
}

Fixed version (ground truth):
private static JPanel createSensitivityPanel(final ConfigurationPart dataContext){
  JPanel panel=new JPanel(new GridBagLayout());
  GridBagConstraints gridConstraints=new GridBagConstraints();
  gridConstraints.fill=GridBagConstraints.HORIZONTAL;
  gridConstraints.insets=new Insets(5,0,0,0);
  gridConstraints.weightx=1;
  gridConstraints.gridy=0;
  panel.add(new JLabel("String_Node_Str"),gridConstraints);
  final JSlider lookHorizontalSlider=new JSlider();
  lookHorizontalSlider.setMajorTickSpacing(5);
  lookHorizontalSlider.setMinorTickSpacing(1);
  lookHorizontalSlider.setPaintTicks(true);
  lookHorizontalSlider.setPaintLabels(true);
  lookHorizontalSlider.setSnapToTicks(true);
  lookHorizontalSlider.setValue(dataContext.getMouseMode1SensitivityX());
  lookHorizontalSlider.setMinimum(0);
  lookHorizontalSlider.setMaximum(40);
  lookHorizontalSlider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      dataContext.setMouseMode1SensitivityX(lookHorizontalSlider.getValue());
    }
  }
);
  gridConstraints.gridy=1;
  panel.add(lookHorizontalSlider,gridConstraints);
  final JSlider lookVerticalSlider=new JSlider();
  lookVerticalSlider.setMajorTickSpacing(5);
  lookVerticalSlider.setMinorTickSpacing(1);
  lookVerticalSlider.setPaintTicks(true);
  lookVerticalSlider.setPaintLabels(true);
  lookVerticalSlider.setSnapToTicks(true);
  lookVerticalSlider.setValue(dataContext.getMouseMode1SensitivityY());
  lookVerticalSlider.setMinimum(0);
  lookVerticalSlider.setMaximum(40);
  lookVerticalSlider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      dataContext.setMouseMode1SensitivityY(lookVerticalSlider.getValue());
    }
  }
);
  gridConstraints.gridy=2;
  panel.add(lookVerticalSlider,gridConstraints);
  gridConstraints.gridy=3;
  panel.add(new JLabel("String_Node_Str"),gridConstraints);
  final JSlider lookMouseHorizontalSlider=new JSlider();
  lookMouseHorizontalSlider.setMajorTickSpacing(5);
  lookMouseHorizontalSlider.setMinorTickSpacing(1);
  lookMouseHorizontalSlider.setPaintTicks(true);
  lookMouseHorizontalSlider.setPaintLabels(true);
  lookMouseHorizontalSlider.setSnapToTicks(true);
  lookMouseHorizontalSlider.setValue(dataContext.getMouseMode2SensitivityX());
  lookMouseHorizontalSlider.setMinimum(0);
  lookMouseHorizontalSlider.setMaximum(40);
  lookMouseHorizontalSlider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      dataContext.setMouseMode2SensitivityX(lookMouseHorizontalSlider.getValue());
    }
  }
);
  gridConstraints.gridy=4;
  panel.add(lookMouseHorizontalSlider,gridConstraints);
  final JSlider lookMouseVerticalSlider=new JSlider();
  lookMouseVerticalSlider.setMajorTickSpacing(5);
  lookMouseVerticalSlider.setMinorTickSpacing(1);
  lookMouseVerticalSlider.setPaintTicks(true);
  lookMouseVerticalSlider.setPaintLabels(true);
  lookMouseVerticalSlider.setSnapToTicks(true);
  lookMouseVerticalSlider.setValue(dataContext.getMouseMode2SensitivityY());
  lookMouseVerticalSlider.setMinimum(0);
  lookMouseVerticalSlider.setMaximum(40);
  lookMouseVerticalSlider.addChangeListener(new ChangeListener(){
    public void stateChanged(    ChangeEvent e){
      dataContext.setMouseMode2SensitivityY(lookMouseVerticalSlider.getValue());
    }
  }
);
  gridConstraints.gridy=5;
  panel.add(lookMouseVerticalSlider,gridConstraints);
  final JCheckBox invertPitchCheckBox=new JCheckBox();
  invertPitchCheckBox.setAction(new SimpleAction(){
    @Override public void actionPerformed(    ActionEvent e){
      dataContext.setLookInverted(invertPitchCheckBox.isSelected());
    }
  }
);
  invertPitchCheckBox.setText("String_Node_Str");
  invertPitchCheckBox.setSelected(dataContext.isLookInverted());
  gridConstraints.gridy=6;
  panel.add(invertPitchCheckBox,gridConstraints);
  JPanel fillerPanel=new JPanel();
  Random rand=new Random(System.currentTimeMillis());
  int niceSettingsssYouHaveThere=rand.nextInt(4);
  if (niceSettingsssYouHaveThere == 0) {
    JLabel iconLabel=new JLabel();
    URL iconUrl=ConfigurationView.class.getClassLoader().getResource(ContentResources.CHROME_SENSITIVITYPANEL_FILLER);
    ImageIcon icon=new ImageIcon(iconUrl);
    Image newimg=icon.getImage().getScaledInstance(120,120,java.awt.Image.SCALE_SMOOTH);
    iconLabel.setIcon(new ImageIcon(newimg));
    fillerPanel.add(iconLabel,BorderLayout.CENTER);
  }
  gridConstraints.gridy=7;
  gridConstraints.weighty=1;
  panel.add(fillerPanel,gridConstraints);
  return panel;
}