Program: 45227
Project: 45227
Buggy source:
private void initUI(){
  Container contentPane=getContentPane();
  totalProgressBar=new JProgressBar();
  totalProgressBar.setStringPainted(true);
  totalProgressBar.setAlignmentX(LEFT_ALIGNMENT);
  currentFileLabel=new JLabel(job.getStatusString());
  currentFileLabel.setAlignmentX(LEFT_ALIGNMENT);
  YBoxPanel yPanel=new YBoxPanel();
  if (transferFileJob != null) {
    yPanel.add(currentFileLabel);
    currentFileProgressBar=new JProgressBar();
    currentFileProgressBar.setStringPainted(true);
    yPanel.add(currentFileProgressBar);
    yPanel.addSpace(10);
    totalTransferredLabel=new JLabel(Translator.get("String_Node_Str"));
    yPanel.add(totalTransferredLabel);
    yPanel.add(totalProgressBar);
  }
 else {
    yPanel.add(currentFileLabel);
    yPanel.add(totalProgressBar);
  }
  yPanel.addSpace(10);
  elapsedTimeLabel=new JLabel(Translator.get("String_Node_Str") + "String_Node_Str");
  elapsedTimeLabel.setIcon(IconManager.getIcon(IconManager.STATUS_BAR_ICON_SET,StatusBar.WAITING_ICON));
  yPanel.add(elapsedTimeLabel);
  if (transferFileJob != null) {
    JPanel tempPanel=new JPanel(new BorderLayout());
    this.currentSpeedLabel=new JLabel();
    updateCurrentSpeedLabel("String_Node_Str");
    currentSpeedLabel.setIcon(IconManager.getIcon(IconManager.PROGRESS_ICON_SET,CURRENT_SPEED_ICON));
    tempPanel.add(currentSpeedLabel,BorderLayout.WEST);
    YBoxPanel advancedPanel=new YBoxPanel();
    JPanel tempPanel2=new JPanel(new BorderLayout());
    this.limitSpeedCheckBox=new JCheckBox(Translator.get("String_Node_Str") + "String_Node_Str",false);
    limitSpeedCheckBox.setFocusable(false);
    limitSpeedCheckBox.addItemListener(this);
    tempPanel2.add(limitSpeedCheckBox,BorderLayout.WEST);
    this.limitSpeedSpinner=new JSpinner(new SpinnerNumberModel(0,0,10000,100));
    limitSpeedSpinner.setEnabled(false);
    limitSpeedSpinner.addChangeListener(this);
    JPanel tempPanel3=new JPanel(new FlowLayout(FlowLayout.LEADING));
    tempPanel3.add(limitSpeedSpinner);
    speedUnitComboBox=new JComboBox();
    for (int i=SizeFormat.BYTE_UNIT; i < SizeFormat.GIGA_BYTE_UNIT; i++)     speedUnitComboBox.addItem(SizeFormat.getUnitString(i,true));
    speedUnitComboBox.setSelectedIndex(SizeFormat.KILO_BYTE_UNIT);
    speedUnitComboBox.setEnabled(false);
    speedUnitComboBox.addItemListener(this);
    tempPanel3.add(speedUnitComboBox);
    tempPanel2.add(tempPanel3,BorderLayout.EAST);
    advancedPanel.add(tempPanel2);
    advancedPanel.addSpace(5);
    this.speedGraph=new SpeedGraph();
    speedGraph.setPreferredSize(new Dimension(0,SPEED_GRAPH_HEIGHT));
    advancedPanel.add(speedGraph);
    this.collapseExpandButton=new CollapseExpandButton(Translator.get("String_Node_Str"),advancedPanel,this,true);
    collapseExpandButton.setExpandedState(ConfigurationManager.getVariableBoolean(ConfigurationVariables.PROGRESS_DIALOG_EXPANDED,ConfigurationVariables.DEFAULT_PROGRESS_DIALOG_EXPANDED));
    tempPanel.add(collapseExpandButton,BorderLayout.EAST);
    yPanel.add(tempPanel);
    yPanel.addSpace(5);
    yPanel.add(advancedPanel);
  }
  closeWhenFinishedCheckBox=new JCheckBox(Translator.get("String_Node_Str"));
  closeWhenFinishedCheckBox.setSelected(ConfigurationManager.getVariableBoolean(ConfigurationVariables.PROGRESS_DIALOG_CLOSE_WHEN_FINISHED,ConfigurationVariables.DEFAULT_PROGRESS_DIALOG_CLOSE_WHEN_FINISHED));
  closeWhenFinishedCheckBox.setFocusable(false);
  yPanel.add(closeWhenFinishedCheckBox);
  yPanel.add(Box.createVerticalGlue());
  contentPane.add(yPanel,BorderLayout.CENTER);
  pauseResumeButton=new JButton(Translator.get("String_Node_Str"),IconManager.getIcon(IconManager.PROGRESS_ICON_SET,PAUSE_ICON));
  pauseResumeButton.addActionListener(this);
  if (transferFileJob != null) {
    skipButton=new JButton(Translator.get("String_Node_Str"),IconManager.getIcon(IconManager.PROGRESS_ICON_SET,SKIP_ICON));
    skipButton.addActionListener(this);
  }
  stopButton=new JButton(Translator.get("String_Node_Str"),IconManager.getIcon(IconManager.PROGRESS_ICON_SET,STOP_ICON));
  stopButton.addActionListener(this);
  this.buttonsChoicePanel=new ButtonChoicePanel(skipButton == null ? new JButton[]{pauseResumeButton,stopButton} : new JButton[]{pauseResumeButton,skipButton,stopButton},0,getRootPane());
  contentPane.add(buttonsChoicePanel,BorderLayout.SOUTH);
  setInitialFocusComponent(stopButton);
  getRootPane().setDefaultButton(stopButton);
}

Fixed version (ground truth):
private void initUI(){
  Container contentPane=getContentPane();
  totalProgressBar=new JProgressBar();
  totalProgressBar.setStringPainted(true);
  totalProgressBar.setAlignmentX(LEFT_ALIGNMENT);
  currentFileLabel=new JLabel(job.getStatusString());
  currentFileLabel.setAlignmentX(LEFT_ALIGNMENT);
  YBoxPanel yPanel=new YBoxPanel();
  if (transferFileJob != null) {
    yPanel.add(currentFileLabel);
    currentFileProgressBar=new JProgressBar();
    currentFileProgressBar.setStringPainted(true);
    yPanel.add(currentFileProgressBar);
    yPanel.addSpace(10);
    totalTransferredLabel=new JLabel(Translator.get("String_Node_Str"));
    yPanel.add(totalTransferredLabel);
    yPanel.add(totalProgressBar);
  }
 else {
    yPanel.add(currentFileLabel);
    yPanel.add(totalProgressBar);
  }
  yPanel.addSpace(10);
  elapsedTimeLabel=new JLabel(Translator.get("String_Node_Str") + "String_Node_Str");
  elapsedTimeLabel.setIcon(IconManager.getIcon(IconManager.STATUS_BAR_ICON_SET,StatusBar.WAITING_ICON));
  yPanel.add(elapsedTimeLabel);
  if (transferFileJob != null) {
    JPanel tempPanel=new JPanel(new BorderLayout());
    this.currentSpeedLabel=new JLabel();
    updateCurrentSpeedLabel("String_Node_Str");
    currentSpeedLabel.setIcon(IconManager.getIcon(IconManager.PROGRESS_ICON_SET,CURRENT_SPEED_ICON));
    tempPanel.add(currentSpeedLabel,BorderLayout.WEST);
    YBoxPanel advancedPanel=new YBoxPanel();
    JPanel tempPanel2=new JPanel(new BorderLayout());
    this.limitSpeedCheckBox=new JCheckBox(Translator.get("String_Node_Str") + "String_Node_Str",false);
    limitSpeedCheckBox.addItemListener(this);
    tempPanel2.add(limitSpeedCheckBox,BorderLayout.WEST);
    this.limitSpeedSpinner=new JSpinner(new SpinnerNumberModel(0,0,10000,100));
    limitSpeedSpinner.setEnabled(false);
    limitSpeedSpinner.addChangeListener(this);
    JPanel tempPanel3=new JPanel(new FlowLayout(FlowLayout.LEADING));
    tempPanel3.add(limitSpeedSpinner);
    speedUnitComboBox=new JComboBox();
    for (int i=SizeFormat.BYTE_UNIT; i < SizeFormat.GIGA_BYTE_UNIT; i++)     speedUnitComboBox.addItem(SizeFormat.getUnitString(i,true));
    speedUnitComboBox.setSelectedIndex(SizeFormat.KILO_BYTE_UNIT);
    speedUnitComboBox.setEnabled(false);
    speedUnitComboBox.addItemListener(this);
    tempPanel3.add(speedUnitComboBox);
    tempPanel2.add(tempPanel3,BorderLayout.EAST);
    advancedPanel.add(tempPanel2);
    advancedPanel.addSpace(5);
    this.speedGraph=new SpeedGraph();
    speedGraph.setPreferredSize(new Dimension(0,SPEED_GRAPH_HEIGHT));
    advancedPanel.add(speedGraph);
    this.collapseExpandButton=new CollapseExpandButton(Translator.get("String_Node_Str"),advancedPanel,this,true);
    collapseExpandButton.setExpandedState(ConfigurationManager.getVariableBoolean(ConfigurationVariables.PROGRESS_DIALOG_EXPANDED,ConfigurationVariables.DEFAULT_PROGRESS_DIALOG_EXPANDED));
    tempPanel.add(collapseExpandButton,BorderLayout.EAST);
    yPanel.add(tempPanel);
    yPanel.addSpace(5);
    yPanel.add(advancedPanel);
  }
  closeWhenFinishedCheckBox=new JCheckBox(Translator.get("String_Node_Str"));
  closeWhenFinishedCheckBox.setSelected(ConfigurationManager.getVariableBoolean(ConfigurationVariables.PROGRESS_DIALOG_CLOSE_WHEN_FINISHED,ConfigurationVariables.DEFAULT_PROGRESS_DIALOG_CLOSE_WHEN_FINISHED));
  yPanel.add(closeWhenFinishedCheckBox);
  yPanel.add(Box.createVerticalGlue());
  contentPane.add(yPanel,BorderLayout.CENTER);
  pauseResumeButton=new JButton(Translator.get("String_Node_Str"),IconManager.getIcon(IconManager.PROGRESS_ICON_SET,PAUSE_ICON));
  pauseResumeButton.addActionListener(this);
  if (transferFileJob != null) {
    skipButton=new JButton(Translator.get("String_Node_Str"),IconManager.getIcon(IconManager.PROGRESS_ICON_SET,SKIP_ICON));
    skipButton.addActionListener(this);
  }
  stopButton=new JButton(Translator.get("String_Node_Str"),IconManager.getIcon(IconManager.PROGRESS_ICON_SET,STOP_ICON));
  stopButton.addActionListener(this);
  this.buttonsChoicePanel=new ButtonChoicePanel(skipButton == null ? new JButton[]{pauseResumeButton,stopButton} : new JButton[]{pauseResumeButton,skipButton,stopButton},0,getRootPane());
  contentPane.add(buttonsChoicePanel,BorderLayout.SOUTH);
  setInitialFocusComponent(stopButton);
  getRootPane().setDefaultButton(stopButton);
}