Program: 21378
Project: 21378
Buggy source:
/** 
 * Hier wird die komplette Oberfläche der Applikation zusammengestrickt
 */
private void buildUI(){
  tabDownloadTable=new TabDownloadLinks(this);
  progressBar=new TabProgress();
  statusBar=new StatusBar();
  splitpane=new JSplitPane();
  splitpane.setBottomComponent(progressBar);
  splitpane.setTopComponent(tabDownloadTable);
  splitpane.setOrientation(JSplitPane.VERTICAL_SPLIT);
  btnStartStop=new JToggleButton(actionStartStopDownload);
  if (JDUtilities.getImage(JDTheme.I("String_Node_Str")) != null)   btnStartStop.setSelectedIcon(new ImageIcon(JDUtilities.getImage(JDTheme.I("String_Node_Str"))));
  btnStartStop.setFocusPainted(false);
  btnStartStop.setBorderPainted(false);
  btnStartStop.setText(null);
  btnPause=new JToggleButton(actionPause);
  if (JDUtilities.getImage(JDTheme.I("String_Node_Str")) != null)   btnPause.setSelectedIcon(new ImageIcon(JDUtilities.getImage(JDTheme.I("String_Node_Str"))));
  btnPause.setFocusPainted(false);
  btnPause.setBorderPainted(false);
  btnPause.setText(null);
  btnPause.setEnabled(false);
  btnToggleReconnect=new JToggleButton(doReconnect);
  if (JDUtilities.getImage(JDTheme.I("String_Node_Str")) != null)   btnToggleReconnect.setSelectedIcon(new ImageIcon(JDUtilities.getImage(JDTheme.I("String_Node_Str"))));
  btnToggleReconnect.setFocusPainted(false);
  btnToggleReconnect.setBorderPainted(false);
  btnToggleReconnect.setText(null);
  btnToggleReconnect.setEnabled(true);
  btnToggleReconnect.setSelected(JDUtilities.getConfiguration().getBooleanProperty(Configuration.PARAM_DISABLE_RECONNECT,false));
  JButton btnAdd=new JButton(actionItemsAdd);
  btnAdd.setFocusPainted(false);
  btnAdd.setBorderPainted(false);
  btnAdd.setText(null);
  JButton btnDelete=new JButton(actionItemsDelete);
  btnDelete.setFocusPainted(false);
  btnDelete.setBorderPainted(false);
  btnDelete.setText(null);
  JButton btnConfig=new JButton(this.actionConfig);
  btnConfig.setFocusPainted(false);
  btnConfig.setBorderPainted(false);
  btnConfig.setText(null);
  JButton btnReconnect=new JButton(this.actionReconnect);
  btnReconnect.setFocusPainted(false);
  btnReconnect.setBorderPainted(false);
  btnReconnect.setText(null);
  JButton btnUpdate=new JButton(this.actionUpdate);
  btnUpdate.setFocusPainted(false);
  btnUpdate.setBorderPainted(false);
  btnUpdate.setText(null);
  JButton btnSave=new JButton(this.actionSaveDLC);
  btnSave.setFocusPainted(false);
  btnSave.setBorderPainted(false);
  btnSave.setText(null);
  JButton btnLoad=new JButton(this.actionLoadDLC);
  btnLoad.setFocusPainted(false);
  btnLoad.setBorderPainted(false);
  btnLoad.setText(null);
  JButton btnLog=new JButton(this.actionLog);
  btnLog.setFocusPainted(false);
  btnLog.setBorderPainted(false);
  btnLog.setText(null);
  btnClipBoard=new JButton(this.actionClipBoard);
  btnClipBoard.setFocusPainted(false);
  btnClipBoard.setBorderPainted(false);
  btnClipBoard.setText(null);
  JButton btnHelp=new JButton(this.actionHelp);
  btnHelp.setFocusPainted(false);
  btnHelp.setBorderPainted(false);
  btnHelp.setText(null);
  toolBar.setFloatable(false);
  toolBar.add(btnLoad);
  toolBar.add(btnSave);
  toolBar.addSeparator();
  toolBar.add(btnStartStop);
  toolBar.add(btnPause);
  toolBar.add(btnAdd);
  toolBar.add(btnDelete);
  toolBar.addSeparator();
  toolBar.add(btnUpdate);
  toolBar.addSeparator();
  toolBar.add(btnConfig);
  toolBar.add(btnLog);
  toolBar.addSeparator();
  toolBar.add(btnReconnect);
  toolBar.add(btnClipBoard);
  toolBar.add(btnToggleReconnect);
  toolBar.add(btnHelp);
  frame.setLayout(new GridBagLayout());
  JDUtilities.addToGridBag(frame,toolBar,0,0,1,1,0,0,null,GridBagConstraints.HORIZONTAL,GridBagConstraints.NORTH);
  JDUtilities.addToGridBag(frame,splitpane,0,1,1,1,1,1,null,GridBagConstraints.BOTH,GridBagConstraints.CENTER);
  JDUtilities.addToGridBag(frame,statusBar,0,2,1,1,0,0,null,GridBagConstraints.HORIZONTAL,GridBagConstraints.WEST);
  logDialog=new LogDialog(frame,logger);
  logDialog.addWindowListener(new LogDialogWindowAdapter());
}

Fixed version (ground truth):
/** 
 * Hier wird die komplette Oberfläche der Applikation zusammengestrickt
 */
private void buildUI(){
  tabDownloadTable=new TabDownloadLinks(this);
  progressBar=new TabProgress();
  statusBar=new StatusBar();
  splitpane=new JSplitPane();
  splitpane.setBottomComponent(progressBar);
  splitpane.setTopComponent(tabDownloadTable);
  splitpane.setOrientation(JSplitPane.VERTICAL_SPLIT);
  btnStartStop=new JButton(actionStartStopDownload);
  if (JDUtilities.getImage(JDTheme.I("String_Node_Str")) != null)   btnStartStop.setSelectedIcon(new ImageIcon(JDUtilities.getImage(JDTheme.I("String_Node_Str"))));
  btnStartStop.setFocusPainted(false);
  btnStartStop.setBorderPainted(false);
  btnStartStop.setText(null);
  btnPause=new JButton(actionPause);
  if (JDUtilities.getImage(JDTheme.I("String_Node_Str")) != null)   btnPause.setSelectedIcon(new ImageIcon(JDUtilities.getImage(JDTheme.I("String_Node_Str"))));
  btnPause.setFocusPainted(false);
  btnPause.setBorderPainted(false);
  btnPause.setText(null);
  btnPause.setEnabled(false);
  btnToggleReconnect=new JButton(doReconnect);
  if (JDUtilities.getImage(JDTheme.I("String_Node_Str")) != null)   btnToggleReconnect.setSelectedIcon(new ImageIcon(JDUtilities.getImage(JDTheme.I("String_Node_Str"))));
  btnToggleReconnect.setFocusPainted(false);
  btnToggleReconnect.setBorderPainted(false);
  btnToggleReconnect.setText(null);
  btnToggleReconnect.setEnabled(true);
  btnToggleReconnect.setSelected(JDUtilities.getConfiguration().getBooleanProperty(Configuration.PARAM_DISABLE_RECONNECT,false));
  JButton btnAdd=new JButton(actionItemsAdd);
  btnAdd.setFocusPainted(false);
  btnAdd.setBorderPainted(false);
  btnAdd.setText(null);
  JButton btnDelete=new JButton(actionItemsDelete);
  btnDelete.setFocusPainted(false);
  btnDelete.setBorderPainted(false);
  btnDelete.setText(null);
  JButton btnConfig=new JButton(this.actionConfig);
  btnConfig.setFocusPainted(false);
  btnConfig.setBorderPainted(false);
  btnConfig.setText(null);
  JButton btnReconnect=new JButton(this.actionReconnect);
  btnReconnect.setFocusPainted(false);
  btnReconnect.setBorderPainted(false);
  btnReconnect.setText(null);
  JButton btnUpdate=new JButton(this.actionUpdate);
  btnUpdate.setFocusPainted(false);
  btnUpdate.setBorderPainted(false);
  btnUpdate.setText(null);
  JButton btnSave=new JButton(this.actionSaveDLC);
  btnSave.setFocusPainted(false);
  btnSave.setBorderPainted(false);
  btnSave.setText(null);
  JButton btnLoad=new JButton(this.actionLoadDLC);
  btnLoad.setFocusPainted(false);
  btnLoad.setBorderPainted(false);
  btnLoad.setText(null);
  JButton btnLog=new JButton(this.actionLog);
  btnLog.setFocusPainted(false);
  btnLog.setBorderPainted(false);
  btnLog.setText(null);
  btnClipBoard=new JButton(this.actionClipBoard);
  btnClipBoard.setFocusPainted(false);
  btnClipBoard.setBorderPainted(false);
  btnClipBoard.setText(null);
  JButton btnHelp=new JButton(this.actionHelp);
  btnHelp.setFocusPainted(false);
  btnHelp.setBorderPainted(false);
  btnHelp.setText(null);
  toolBar.setFloatable(false);
  toolBar.add(btnLoad);
  toolBar.add(btnSave);
  toolBar.addSeparator();
  toolBar.add(btnStartStop);
  toolBar.add(btnPause);
  toolBar.add(btnAdd);
  toolBar.add(btnDelete);
  toolBar.addSeparator();
  toolBar.add(btnUpdate);
  toolBar.addSeparator();
  toolBar.add(btnConfig);
  toolBar.add(btnLog);
  toolBar.addSeparator();
  toolBar.add(btnReconnect);
  toolBar.add(btnClipBoard);
  toolBar.add(btnToggleReconnect);
  toolBar.add(btnHelp);
  frame.setLayout(new GridBagLayout());
  JDUtilities.addToGridBag(frame,toolBar,0,0,1,1,0,0,null,GridBagConstraints.HORIZONTAL,GridBagConstraints.NORTH);
  JDUtilities.addToGridBag(frame,splitpane,0,1,1,1,1,1,null,GridBagConstraints.BOTH,GridBagConstraints.CENTER);
  JDUtilities.addToGridBag(frame,statusBar,0,2,1,1,0,0,null,GridBagConstraints.HORIZONTAL,GridBagConstraints.WEST);
  logDialog=new LogDialog(frame,logger);
  logDialog.addWindowListener(new LogDialogWindowAdapter());
}