Program: 21341
Project: 21341
Buggy source:
/** 
 * @param parent
 * @param uiinterface
 */
private ConfigurationDialog(JFrame parent,UIInterface uiinterface){
  DIALOG=this;
  this.guiConfig=JDUtilities.getSubConfig(SimpleGUI.GUICONFIGNAME);
  PARENTFRAME=parent;
  this.uiinterface=uiinterface;
  setTitle(JDLocale.L("String_Node_Str","String_Node_Str"));
  setIconImage(JDUtilities.getImage(JDTheme.V("String_Node_Str")));
  this.setName("String_Node_Str");
  configuration=JDUtilities.getConfiguration();
  tabbedPane=new JTabbedPane();
  tabbedPane.setBorder(null);
  tabbedPane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
  if (UIManager.getLookAndFeel().getName().toLowerCase().contains("String_Node_Str"))   tabbedPane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
  tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
  tabbedPane.setTabPlacement(JTabbedPane.LEFT);
  if (System.getProperty("String_Node_Str").toLowerCase().indexOf("String_Node_Str") >= 0) {
    tabbedPane.setTabPlacement(JTabbedPane.TOP);
  }
  this.addConfigPanel(ConfigPanelGeneral.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelDownload.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelGUI.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelReconnect.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelUnrar.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelPluginForHost.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelPluginForDecrypt.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  if (guiConfig.getBooleanProperty(SimpleGUI.PARAM_USE_EXPERT_VIEW,false)) {
    this.addConfigPanel(ConfigPanelCaptcha.class,JDTheme.V("String_Node_Str","String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
    this.addConfigPanel(ConfigPanelInfoFileWriter.class,JDTheme.V("String_Node_Str","String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
    this.addConfigPanel(ConfigPanelEventmanager.class,JDTheme.V("String_Node_Str","String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
    this.addConfigPanel(ConfigPanelPluginsOptional.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
    this.addConfigPanel(ConfigPanelPluginForContainer.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
    this.addConfigPanel(ConfigPanelUpdater.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  }
  this.addConfigPanel(ConfigPanelRessources.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelLinks.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  int maxLength=0;
  int tabs=tabbedPane.getTabCount();
  for (int i=0; i < tabs; i++) {
    maxLength=Math.max(maxLength,tabbedPane.getTitleAt(i).length());
  }
  for (int i=0; i < tabs; i++) {
    tabbedPane.setTitleAt(i,fill(tabbedPane.getTitleAt(i),maxLength + 1));
  }
  tabbedPane.setFont(new Font(Font.MONOSPACED,Font.PLAIN,12));
  btnSave=new JButton(JDLocale.L("String_Node_Str","String_Node_Str"));
  btnSave.addActionListener(this);
  btnCancel=new JButton(JDLocale.L("String_Node_Str","String_Node_Str"));
  btnCancel.addActionListener(this);
  btnRestart=new JButton(JDLocale.L("String_Node_Str","String_Node_Str"));
  btnRestart.addActionListener(this);
  chbExpert=new JCheckBox(JDLocale.L("String_Node_Str","String_Node_Str"));
  chbExpert.setSelected(guiConfig.getBooleanProperty(SimpleGUI.PARAM_USE_EXPERT_VIEW,false));
  chbExpert.addActionListener(this);
  setLayout(new GridBagLayout());
  int n=5;
  JPanel cp=new JPanel(new BorderLayout(n,n));
  int b=12;
  cp.setBorder(new EmptyBorder(b,b,b,b));
  setContentPane(cp);
  JPanel sp=new JPanel(new BorderLayout(n,n));
  JPanel btPanel=new JPanel(new FlowLayout(n,n,FlowLayout.RIGHT));
  btPanel.add(btnRestart);
  btPanel.add(btnSave);
  btPanel.add(btnCancel);
  sp.add(chbExpert,BorderLayout.WEST);
  sp.add(btPanel,BorderLayout.EAST);
  cp.add(tabbedPane,BorderLayout.CENTER);
  cp.add(sp,BorderLayout.SOUTH);
  JDUtilities.getLogger().info("String_Node_Str" + JDUtilities.getSubConfig(SimpleGUI.GUICONFIGNAME).getIntegerProperty(SimpleGUI.SELECTED_CONFIG_TAB,0));
  tabbedPane.addChangeListener(this);
  if (configClasses.size() <= JDUtilities.getSubConfig(SimpleGUI.GUICONFIGNAME).getIntegerProperty(SimpleGUI.SELECTED_CONFIG_TAB,0) || JDUtilities.getSubConfig(SimpleGUI.GUICONFIGNAME).getIntegerProperty(SimpleGUI.SELECTED_CONFIG_TAB,0) == 0) {
    paintPanel(0);
  }
 else {
    tabbedPane.setSelectedIndex(JDUtilities.getSubConfig(SimpleGUI.GUICONFIGNAME).getIntegerProperty(SimpleGUI.SELECTED_CONFIG_TAB,0));
  }
  LocationListener list=new LocationListener();
  this.addComponentListener(list);
  this.addWindowListener(list);
  pack();
  SimpleGUI.restoreWindow(parent,null,this);
  this.setVisible(true);
}

Fixed version (ground truth):
/** 
 * @param parent
 * @param uiinterface
 */
private ConfigurationDialog(JFrame parent,UIInterface uiinterface){
  DIALOG=this;
  this.guiConfig=JDUtilities.getSubConfig(SimpleGUI.GUICONFIGNAME);
  PARENTFRAME=parent;
  this.uiinterface=uiinterface;
  setTitle(JDLocale.L("String_Node_Str","String_Node_Str"));
  setIconImage(JDUtilities.getImage(JDTheme.V("String_Node_Str")));
  this.setName("String_Node_Str");
  configuration=JDUtilities.getConfiguration();
  tabbedPane=new JTabbedPane();
  tabbedPane.setBorder(null);
  tabbedPane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
  String laf=UIManager.getLookAndFeel().getName().toLowerCase();
  if (laf.contains("String_Node_Str") || laf.contains("String_Node_Str"))   tabbedPane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
  tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
  tabbedPane.setTabPlacement(JTabbedPane.LEFT);
  if (System.getProperty("String_Node_Str").toLowerCase().indexOf("String_Node_Str") >= 0) {
    tabbedPane.setTabPlacement(JTabbedPane.TOP);
  }
  this.addConfigPanel(ConfigPanelGeneral.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelDownload.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelGUI.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelReconnect.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelUnrar.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelPluginForHost.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelPluginForDecrypt.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  if (guiConfig.getBooleanProperty(SimpleGUI.PARAM_USE_EXPERT_VIEW,false)) {
    this.addConfigPanel(ConfigPanelCaptcha.class,JDTheme.V("String_Node_Str","String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
    this.addConfigPanel(ConfigPanelInfoFileWriter.class,JDTheme.V("String_Node_Str","String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
    this.addConfigPanel(ConfigPanelEventmanager.class,JDTheme.V("String_Node_Str","String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
    this.addConfigPanel(ConfigPanelPluginsOptional.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
    this.addConfigPanel(ConfigPanelPluginForContainer.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
    this.addConfigPanel(ConfigPanelUpdater.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  }
  this.addConfigPanel(ConfigPanelRessources.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  this.addConfigPanel(ConfigPanelLinks.class,JDTheme.V("String_Node_Str"),JDLocale.L("String_Node_Str","String_Node_Str"));
  int maxLength=0;
  int tabs=tabbedPane.getTabCount();
  for (int i=0; i < tabs; i++) {
    maxLength=Math.max(maxLength,tabbedPane.getTitleAt(i).length());
  }
  for (int i=0; i < tabs; i++) {
    tabbedPane.setTitleAt(i,fill(tabbedPane.getTitleAt(i),maxLength + 1));
  }
  tabbedPane.setFont(new Font(Font.MONOSPACED,Font.PLAIN,12));
  btnSave=new JButton(JDLocale.L("String_Node_Str","String_Node_Str"));
  btnSave.addActionListener(this);
  btnCancel=new JButton(JDLocale.L("String_Node_Str","String_Node_Str"));
  btnCancel.addActionListener(this);
  btnRestart=new JButton(JDLocale.L("String_Node_Str","String_Node_Str"));
  btnRestart.addActionListener(this);
  chbExpert=new JCheckBox(JDLocale.L("String_Node_Str","String_Node_Str"));
  chbExpert.setSelected(guiConfig.getBooleanProperty(SimpleGUI.PARAM_USE_EXPERT_VIEW,false));
  chbExpert.addActionListener(this);
  setLayout(new GridBagLayout());
  int n=5;
  JPanel cp=new JPanel(new BorderLayout(n,n));
  int b=12;
  cp.setBorder(new EmptyBorder(b,b,b,b));
  setContentPane(cp);
  JPanel sp=new JPanel(new BorderLayout(n,n));
  JPanel btPanel=new JPanel(new FlowLayout(n,n,FlowLayout.RIGHT));
  btPanel.add(btnRestart);
  btPanel.add(btnSave);
  btPanel.add(btnCancel);
  sp.add(chbExpert,BorderLayout.WEST);
  sp.add(btPanel,BorderLayout.EAST);
  cp.add(tabbedPane,BorderLayout.CENTER);
  cp.add(sp,BorderLayout.SOUTH);
  JDUtilities.getLogger().info("String_Node_Str" + JDUtilities.getSubConfig(SimpleGUI.GUICONFIGNAME).getIntegerProperty(SimpleGUI.SELECTED_CONFIG_TAB,0));
  tabbedPane.addChangeListener(this);
  if (configClasses.size() <= JDUtilities.getSubConfig(SimpleGUI.GUICONFIGNAME).getIntegerProperty(SimpleGUI.SELECTED_CONFIG_TAB,0) || JDUtilities.getSubConfig(SimpleGUI.GUICONFIGNAME).getIntegerProperty(SimpleGUI.SELECTED_CONFIG_TAB,0) == 0) {
    paintPanel(0);
  }
 else {
    tabbedPane.setSelectedIndex(JDUtilities.getSubConfig(SimpleGUI.GUICONFIGNAME).getIntegerProperty(SimpleGUI.SELECTED_CONFIG_TAB,0));
  }
  LocationListener list=new LocationListener();
  this.addComponentListener(list);
  this.addWindowListener(list);
  pack();
  SimpleGUI.restoreWindow(parent,null,this);
  this.setVisible(true);
}