Program: 157836
Project: 157836
Buggy source:
/** 
 * Creates new form MageFrame
 */
public MageFrame(){
  setWindowTitle();
  EDTExceptionHandler.registerExceptionHandler();
  addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      exitApp();
    }
  }
);
  Toolkit.getDefaultToolkit().addAWTEventListener(event -> handleEvent(event),AWTEvent.KEY_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK);
  TConfig config=TConfig.current();
  config.setArchiveDetector(new TArchiveDetector("String_Node_Str"));
  config.setAccessPreference(FsAccessOption.STORE,true);
  try {
    UIManager.put("String_Node_Str",new Color(0,0,0,0));
    UIManager.setLookAndFeel("String_Node_Str");
{
      Object value=UIManager.get("String_Node_Str");
      if (value instanceof InputMap) {
        InputMap map=(InputMap)value;
        for (int vk=KeyEvent.VK_F2; vk <= KeyEvent.VK_F12; ++vk) {
          map.remove(KeyStroke.getKeyStroke(vk,0));
        }
      }
    }
    GUISizeHelper.calculateGUISizes();
  }
 catch (  Exception ex) {
    LOGGER.fatal(null,ex);
  }
  ManaSymbols.loadImages();
  Plugins.instance.loadPlugins();
  initComponents();
  desktopPane.setDesktopManager(new MageDesktopManager());
  setSize(1024,768);
  SettingsManager.instance.setScreenWidthAndHeight(1024,768);
  DialogManager.updateParams(768,1024,false);
  this.setExtendedState(JFrame.MAXIMIZED_BOTH);
  SessionHandler.startSession(this);
  callbackClient=new CallbackClientImpl(this);
  connectDialog=new ConnectDialog();
  desktopPane.add(connectDialog,JLayeredPane.POPUP_LAYER);
  errorDialog=new ErrorDialog();
  errorDialog.setLocation(100,100);
  desktopPane.add(errorDialog,JLayeredPane.POPUP_LAYER);
  UI.addComponent(MageComponents.DESKTOP_PANE,desktopPane);
  PING_TASK_EXECUTOR.scheduleAtFixedRate(() -> SessionHandler.ping(),60,60,TimeUnit.SECONDS);
  updateMemUsageTask=new UpdateMemUsageTask(jMemUsageLabel);
  tablesPane=new TablesPane();
  desktopPane.add(tablesPane,javax.swing.JLayeredPane.DEFAULT_LAYER);
  addTooltipContainer();
  setBackground();
  addMageLabel();
  setAppIcon();
  MageTray.instance.install();
  desktopPane.add(ArrowBuilder.getBuilder().getArrowsManagerPanel(),JLayeredPane.DRAG_LAYER);
  desktopPane.addComponentListener(new ComponentAdapter(){
    @Override public void componentResized(    ComponentEvent e){
      int width=((JComponent)e.getSource()).getWidth();
      int height=((JComponent)e.getSource()).getHeight();
      SettingsManager.instance.setScreenWidthAndHeight(width,height);
      if (!liteMode && !grayMode) {
        backgroundPane.setSize(width,height);
      }
      updateCurrentFrameSize();
      ArrowBuilder.getBuilder().setSize(width,height);
      if (title != null) {
        title.setBounds((int)(width - titleRectangle.getWidth()) / 2,(int)(height - titleRectangle.getHeight()) / 2,titleRectangle.width,titleRectangle.height);
      }
    }
  }
);
  balloonTip=new BalloonTip(desktopPane,"String_Node_Str",new EdgedBalloonStyle(Color.WHITE,Color.BLUE),false);
  balloonTip.setPositioner(new LeftAbovePositioner(0,0));
  balloonTip.setVisible(false);
  mageToolbar.add(createSwitchPanelsButton(),0);
  mageToolbar.add(new javax.swing.JToolBar.Separator(),1);
  if (Plugins.instance.isCounterPluginLoaded()) {
    int i=Plugins.instance.getGamesPlayed();
    JLabel label=new JLabel("String_Node_Str" + String.valueOf(i));
    desktopPane.add(label,JLayeredPane.DEFAULT_LAYER + 1);
    label.setVisible(true);
    label.setForeground(Color.white);
    label.setBounds(0,0,180,30);
  }
  setGUISize();
  SwingUtilities.invokeLater(() -> {
    disableButtons();
    if (PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_IMAGES_CHECK,"String_Node_Str").equals("String_Node_Str")) {
      checkForNewImages();
    }
    updateMemUsageTask.execute();
    LOGGER.info("String_Node_Str" + ((System.currentTimeMillis() - startTime) / 1000 + "String_Node_Str"));
    if (autoConnect()) {
      enableButtons();
    }
 else {
      connectDialog.showDialog();
    }
    setWindowTitle();
  }
);
  if (SystemUtil.isMacOSX()) {
    SystemUtil.enableMacOSFullScreenMode(this);
    if (fullscreenMode) {
      SystemUtil.toggleMacOSFullScreenMode(this);
    }
  }
}

Fixed version (ground truth):
/** 
 * Creates new form MageFrame
 */
public MageFrame(){
  setWindowTitle();
  EDTExceptionHandler.registerExceptionHandler();
  addWindowListener(new WindowAdapter(){
    @Override public void windowClosing(    WindowEvent e){
      exitApp();
    }
  }
);
  Toolkit.getDefaultToolkit().addAWTEventListener(event -> handleEvent(event),AWTEvent.KEY_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK);
  TConfig config=TConfig.current();
  config.setArchiveDetector(new TArchiveDetector("String_Node_Str"));
  config.setAccessPreference(FsAccessOption.STORE,true);
  try {
    UIManager.put("String_Node_Str",new Color(0,0,0,0));
    UIManager.setLookAndFeel("String_Node_Str");
{
      Object value=UIManager.get("String_Node_Str");
      if (value instanceof InputMap) {
        InputMap map=(InputMap)value;
        for (int vk=KeyEvent.VK_F2; vk <= KeyEvent.VK_F12; ++vk) {
          map.remove(KeyStroke.getKeyStroke(vk,0));
        }
      }
    }
    GUISizeHelper.calculateGUISizes();
  }
 catch (  Exception ex) {
    LOGGER.fatal(null,ex);
  }
  ManaSymbols.loadImages();
  Plugins.instance.loadPlugins();
  initComponents();
  desktopPane.setDesktopManager(new MageDesktopManager());
  setSize(1024,768);
  SettingsManager.instance.setScreenWidthAndHeight(1024,768);
  DialogManager.updateParams(768,1024,false);
  this.setExtendedState(JFrame.MAXIMIZED_BOTH);
  SessionHandler.startSession(this);
  callbackClient=new CallbackClientImpl(this);
  connectDialog=new ConnectDialog();
  desktopPane.add(connectDialog,JLayeredPane.MODAL_LAYER);
  errorDialog=new ErrorDialog();
  errorDialog.setLocation(100,100);
  desktopPane.add(errorDialog,JLayeredPane.MODAL_LAYER);
  UI.addComponent(MageComponents.DESKTOP_PANE,desktopPane);
  PING_TASK_EXECUTOR.scheduleAtFixedRate(() -> SessionHandler.ping(),60,60,TimeUnit.SECONDS);
  updateMemUsageTask=new UpdateMemUsageTask(jMemUsageLabel);
  tablesPane=new TablesPane();
  desktopPane.add(tablesPane,javax.swing.JLayeredPane.DEFAULT_LAYER);
  addTooltipContainer();
  setBackground();
  addMageLabel();
  setAppIcon();
  MageTray.instance.install();
  desktopPane.add(ArrowBuilder.getBuilder().getArrowsManagerPanel(),JLayeredPane.DRAG_LAYER);
  desktopPane.addComponentListener(new ComponentAdapter(){
    @Override public void componentResized(    ComponentEvent e){
      int width=((JComponent)e.getSource()).getWidth();
      int height=((JComponent)e.getSource()).getHeight();
      SettingsManager.instance.setScreenWidthAndHeight(width,height);
      if (!liteMode && !grayMode) {
        backgroundPane.setSize(width,height);
      }
      updateCurrentFrameSize();
      ArrowBuilder.getBuilder().setSize(width,height);
      if (title != null) {
        title.setBounds((int)(width - titleRectangle.getWidth()) / 2,(int)(height - titleRectangle.getHeight()) / 2,titleRectangle.width,titleRectangle.height);
      }
    }
  }
);
  balloonTip=new BalloonTip(desktopPane,"String_Node_Str",new EdgedBalloonStyle(Color.WHITE,Color.BLUE),false);
  balloonTip.setPositioner(new LeftAbovePositioner(0,0));
  balloonTip.setVisible(false);
  mageToolbar.add(createSwitchPanelsButton(),0);
  mageToolbar.add(new javax.swing.JToolBar.Separator(),1);
  if (Plugins.instance.isCounterPluginLoaded()) {
    int i=Plugins.instance.getGamesPlayed();
    JLabel label=new JLabel("String_Node_Str" + String.valueOf(i));
    desktopPane.add(label,JLayeredPane.DEFAULT_LAYER + 1);
    label.setVisible(true);
    label.setForeground(Color.white);
    label.setBounds(0,0,180,30);
  }
  setGUISize();
  SwingUtilities.invokeLater(() -> {
    disableButtons();
    if (PreferencesDialog.getCachedValue(PreferencesDialog.KEY_CARD_IMAGES_CHECK,"String_Node_Str").equals("String_Node_Str")) {
      checkForNewImages();
    }
    updateMemUsageTask.execute();
    LOGGER.info("String_Node_Str" + ((System.currentTimeMillis() - startTime) / 1000 + "String_Node_Str"));
    if (autoConnect()) {
      enableButtons();
    }
 else {
      connectDialog.showDialog();
    }
    setWindowTitle();
  }
);
  if (SystemUtil.isMacOSX()) {
    SystemUtil.enableMacOSFullScreenMode(this);
    if (fullscreenMode) {
      SystemUtil.toggleMacOSFullScreenMode(this);
    }
  }
}