Program: 7188
Project: 7188
Buggy source:
public void makeControls(){
  controls=new JPanel();
  instruments=new JPanel();
  controls.add(instruments);
  controls.setPreferredSize(new Dimension(250,SURFACE_HEIGHT + 400));
  controls.setLayout(new BoxLayout(controls,BoxLayout.Y_AXIS));
  controls.setBackground(bgColor);
  instruments.setPreferredSize(new Dimension(250,350));
  instruments.setLayout(new GridLayout(0,1));
  instruments.setBackground(bgColor);
  header.setFont(headerFont);
  header.setForeground(fgText);
  header.setAlignmentX(Component.LEFT_ALIGNMENT);
  instruments.add(header);
  instruments.add(Box.createVerticalGlue());
  int i=1;
  for (  JLabel label : instrumLabels) {
    label.setFont(instrumFont);
    if (KaossTest.INSTRUMENT_DEFAULT == i)     label.setForeground(instrumSelText);
 else     label.setForeground(instrumText);
    label.setAlignmentX(Component.LEFT_ALIGNMENT);
    instruments.add(label);
    instruments.add(Box.createVerticalGlue());
    i++;
  }
  knobs=new JPanel();
  knobs.setPreferredSize(new Dimension(250,300));
  knobs.setLayout(new GridLayout(0,2));
  knobs.setBackground(bgColor);
  controls.add(knobs);
  for (  JLabel label : knobLabels) {
    label.setFont(knobFont);
    label.setForeground(knobText);
    label.setAlignmentX(Component.LEFT_ALIGNMENT);
  }
  knobs.add(loKnob=new DKnob());
  knobs.add(lowpassLabel);
  knobs.add(pitchKnob=new DKnob());
  knobs.add(pitchLabel);
  knobs.add(panKnob=new DKnob());
  knobs.add(panLabel);
  knobs.add(depthKnob=new DKnob());
  knobs.add(depthLabel);
  knobs.add(rateKnob=new DKnob());
  knobs.add(rateLabel);
}

Fixed version (ground truth):
public void makeControls(){
  controls=new JPanel();
  instruments=new JPanel();
  controls.add(instruments);
  controls.setPreferredSize(new Dimension(250,SURFACE_HEIGHT + 400));
  controls.setLayout(new BoxLayout(controls,BoxLayout.Y_AXIS));
  controls.setBackground(bgColor);
  instruments.setPreferredSize(new Dimension(250,350));
  instruments.setLayout(new GridLayout(0,1));
  instruments.setBackground(bgColor);
  header.setFont(headerFont);
  header.setForeground(fgText);
  header.setAlignmentX(Component.LEFT_ALIGNMENT);
  instruments.add(header);
  instruments.add(Box.createVerticalGlue());
  int i=1;
  for (  JLabel label : instrumLabels) {
    label.setFont(instrumFont);
    if (KaossTest.INSTRUMENT_DEFAULT == i)     label.setForeground(instrumSelText);
 else     label.setForeground(instrumText);
    label.setAlignmentX(Component.LEFT_ALIGNMENT);
    instruments.add(label);
    instruments.add(Box.createVerticalGlue());
    i++;
  }
  knobs=new JPanel();
  knobs.setPreferredSize(new Dimension(250,300));
  knobs.setLayout(new GridLayout(0,2));
  knobs.setBackground(bgColor);
  controls.add(knobs);
  for (  JLabel label : knobLabels) {
    label.setFont(knobFont);
    label.setForeground(knobText);
    label.setAlignmentX(Component.LEFT_ALIGNMENT);
  }
  knobs.add(loKnob=new DKnob());
  knobs.add(lowpassLabel);
  knobs.add(pitchKnob=new DKnob());
  knobs.add(pitchLabel);
  knobs.add(panKnob=new DKnob());
  knobs.add(panLabel);
  knobs.add(depthKnob=new DKnob());
  knobs.add(depthLabel);
  knobs.add(rateKnob=new DKnob());
  knobs.add(rateLabel);
  for (  JLabel label : scaleLabels) {
    label.setFont(scaleFont);
    label.setForeground(scaleText);
    label.setAlignmentX(Component.LEFT_ALIGNMENT);
    extraControls.add(label);
    extraControls.add(Box.createHorizontalGlue());
  }
  for (  JLabel label : effectLabels) {
    label.setFont(effectFont);
    label.setForeground(effectText);
    label.setAlignmentX(Component.LEFT_ALIGNMENT);
    extraControls.add(label);
    extraControls.add(Box.createHorizontalGlue());
  }
  majorLabel.setForeground(scaleSelText);
}