Program: 159150
Project: 159150
Buggy source:
/** 
 * This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
 */
@SuppressWarnings("String_Node_Str") private void initComponents(){
  panelBackground=new MageRoundPane();
  panelBackground.setPreferredSize(new Dimension(PANEL_WIDTH - 2,PANEL_HEIGHT));
  Rectangle r=new Rectangle(80,80);
  timerLabel=new JLabel();
  lifeLabel=new JLabel();
  handLabel=new JLabel();
  poisonLabel=new JLabel();
  libraryLabel=new JLabel();
  setOpaque(false);
  panelBackground.setXOffset(3);
  panelBackground.setYOffset(3);
  panelBackground.setVisible(true);
  Image image=ImageHelper.getImageFromResources(DEFAULT_AVATAR_PATH);
  topCardPanel=Plugins.getInstance().getMageCard(new CardView(CardRepository.instance.findCard("String_Node_Str").getMockCard()),bigCard,topCardDimension,gameId,true);
  topCardPanel.setVisible(false);
  panelBackground.add(topCardPanel);
  BufferedImage resized=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(image,BufferedImage.TYPE_INT_ARGB),r);
  avatar=new HoverButton("String_Node_Str",resized,resized,resized,r);
  String showPlayerNamePermanently=MageFrame.getPreferences().get(PreferencesDialog.KEY_SHOW_PLAYER_NAMES_PERMANENTLY,"String_Node_Str");
  if (showPlayerNamePermanently.equals("String_Node_Str")) {
    avatar.setTextAlwaysVisible(true);
  }
  avatar.setTextOffsetButtonY(10);
  avatar.setObserver(new Command(){
    @Override public void execute(){
      session.sendPlayerUUID(gameId,playerId);
    }
  }
);
  timerLabel.setToolTipText("String_Node_Str");
  timerLabel.setSize(80,12);
  timerLabel.setHorizontalAlignment(SwingConstants.CENTER);
  r=new Rectangle(18,18);
  lifeLabel.setToolTipText("String_Node_Str");
  Image imageLife=ImageHelper.getImageFromResources("String_Node_Str");
  BufferedImage resizedLife=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(imageLife,BufferedImage.TYPE_INT_ARGB),r);
  life=new ImagePanel(resizedLife,ImagePanel.ACTUAL);
  life.setToolTipText("String_Node_Str");
  life.setOpaque(false);
  r=new Rectangle(18,18);
  handLabel.setToolTipText("String_Node_Str");
  Image imageHand=ImageHelper.getImageFromResources("String_Node_Str");
  BufferedImage resizedHand=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(imageHand,BufferedImage.TYPE_INT_ARGB),r);
  hand=new ImagePanel(resizedHand,ImagePanel.ACTUAL);
  hand.setToolTipText("String_Node_Str");
  hand.setOpaque(false);
  poisonLabel.setText("String_Node_Str");
  r=new Rectangle(14,14);
  poisonLabel.setToolTipText("String_Node_Str");
  Image imagePoison=ImageHelper.getImageFromResources("String_Node_Str");
  BufferedImage resizedPoison=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(imagePoison,BufferedImage.TYPE_INT_ARGB),r);
  poison=new ImagePanel(resizedPoison,ImagePanel.ACTUAL);
  poison.setToolTipText("String_Node_Str");
  poison.setOpaque(false);
  r=new Rectangle(19,19);
  libraryLabel.setToolTipText("String_Node_Str");
  Image imageLibrary=ImageHelper.getImageFromResources("String_Node_Str");
  BufferedImage resizedLibrary=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(imageLibrary,BufferedImage.TYPE_INT_ARGB),r);
  library=new ImagePanel(resizedLibrary,ImagePanel.ACTUAL);
  library.setToolTipText("String_Node_Str");
  library.setOpaque(false);
  graveLabel=new JLabel();
  r=new Rectangle(21,21);
  graveLabel.setToolTipText("String_Node_Str");
  Image imageGrave=ImageHelper.getImageFromResources("String_Node_Str");
  BufferedImage resizedGrave=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(imageGrave,BufferedImage.TYPE_INT_ARGB),r);
  grave=new HoverButton(null,resizedGrave,resizedGrave,resizedGrave,r);
  grave.setToolTipText("String_Node_Str");
  grave.setOpaque(false);
  grave.setObserver(new Command(){
    @Override public void execute(){
      btnGraveActionPerformed(null);
    }
  }
);
  exileLabel=new JLabel();
  exileLabel.setToolTipText("String_Node_Str");
  image=ImageHelper.getImageFromResources("String_Node_Str");
  r=new Rectangle(21,21);
  resized=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(image,BufferedImage.TYPE_INT_ARGB),r);
  exileZone=new HoverButton(null,resized,resized,resized,r);
  exileZone.setToolTipText("String_Node_Str");
  exileZone.setOpaque(false);
  exileZone.setObserver(new Command(){
    @Override public void execute(){
      btnExileZoneActionPerformed(null);
    }
  }
);
  exileZone.setBounds(25,0,21,21);
  r=new Rectangle(25,21);
  image=ImageHelper.getImageFromResources("String_Node_Str");
  resized=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(image,BufferedImage.TYPE_INT_ARGB),r);
  cheat=new JButton();
  cheat.setIcon(new ImageIcon(resized));
  cheat.setToolTipText("String_Node_Str");
  cheat.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      btnCheatActionPerformed(e);
    }
  }
);
  zonesPanel=new JPanel();
  zonesPanel.setPreferredSize(new Dimension(100,20));
  zonesPanel.setSize(100,20);
  zonesPanel.setLayout(null);
  image=ImageHelper.getImageFromResources("String_Node_Str");
  r=new Rectangle(21,21);
  resized=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(image,BufferedImage.TYPE_INT_ARGB),r);
  commandZone=new HoverButton(null,resized,resized,resized,r);
  commandZone.setToolTipText("String_Node_Str");
  commandZone.setOpaque(false);
  commandZone.setObserver(new Command(){
    @Override public void execute(){
      btnCommandZoneActionPerformed(null);
    }
  }
);
  commandZone.setBounds(5,0,21,21);
  zonesPanel.add(commandZone);
  cheat.setBounds(28,0,25,21);
  zonesPanel.add(cheat);
  btnPlayer=new JButton();
  btnPlayer.setText("String_Node_Str");
  btnPlayer.setVisible(false);
  btnPlayer.setToolTipText("String_Node_Str");
  btnPlayer.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      session.sendPlayerUUID(gameId,playerId);
    }
  }
);
  JLabel manaCountLabelW=new JLabel();
  manaCountLabelW.setToolTipText("String_Node_Str");
  manaCountLabelW.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelW);
  r=new Rectangle(12,12);
  BufferedImage imageManaW=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnWhiteMana=new HoverButton(null,imageManaW,imageManaW,imageManaW,r);
  btnWhiteMana.setToolTipText("String_Node_Str");
  btnWhiteMana.setOpaque(false);
  btnWhiteMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.WHITE);
    }
  }
);
  JLabel manaCountLabelU=new JLabel();
  manaCountLabelU.setToolTipText("String_Node_Str");
  manaCountLabelU.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelU);
  r=new Rectangle(12,12);
  BufferedImage imageManaU=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnBlueMana=new HoverButton(null,imageManaU,imageManaU,imageManaU,r);
  btnBlueMana.setToolTipText("String_Node_Str");
  btnBlueMana.setOpaque(false);
  btnBlueMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.BLUE);
    }
  }
);
  JLabel manaCountLabelB=new JLabel();
  manaCountLabelB.setToolTipText("String_Node_Str");
  manaCountLabelB.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelB);
  r=new Rectangle(12,12);
  BufferedImage imageManaB=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnBlackMana=new HoverButton(null,imageManaB,imageManaB,imageManaB,r);
  btnBlackMana.setToolTipText("String_Node_Str");
  btnBlackMana.setOpaque(false);
  btnBlackMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.BLACK);
    }
  }
);
  JLabel manaCountLabelR=new JLabel();
  manaCountLabelR.setToolTipText("String_Node_Str");
  manaCountLabelR.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelR);
  r=new Rectangle(12,12);
  BufferedImage imageManaR=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnRedMana=new HoverButton(null,imageManaR,imageManaR,imageManaR,r);
  btnRedMana.setToolTipText("String_Node_Str");
  btnRedMana.setOpaque(false);
  btnRedMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.RED);
    }
  }
);
  JLabel manaCountLabelG=new JLabel();
  manaCountLabelG.setToolTipText("String_Node_Str");
  manaCountLabelG.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelG);
  r=new Rectangle(12,12);
  BufferedImage imageManaG=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnGreenMana=new HoverButton(null,imageManaG,imageManaG,imageManaG,r);
  btnGreenMana.setToolTipText("String_Node_Str");
  btnGreenMana.setOpaque(false);
  btnGreenMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.GREEN);
    }
  }
);
  JLabel manaCountLabelX=new JLabel();
  manaCountLabelX.setToolTipText("String_Node_Str");
  manaCountLabelX.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelX);
  r=new Rectangle(12,12);
  BufferedImage imageManaX=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnColorlessMana=new HoverButton(null,imageManaX,imageManaX,imageManaX,r);
  btnColorlessMana.setToolTipText("String_Node_Str");
  btnColorlessMana.setOpaque(false);
  btnColorlessMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.COLORLESS);
    }
  }
);
  GroupLayout gl_panelBackground=new GroupLayout(panelBackground);
  gl_panelBackground.setHorizontalGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(9).addComponent(life,GroupLayout.PREFERRED_SIZE,18,GroupLayout.PREFERRED_SIZE).addGap(3).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(18).addComponent(hand,GroupLayout.PREFERRED_SIZE,18,GroupLayout.PREFERRED_SIZE)).addComponent(lifeLabel,GroupLayout.PREFERRED_SIZE,25,GroupLayout.PREFERRED_SIZE)).addGap(4).addComponent(handLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(9).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(3).addComponent(poison,GroupLayout.PREFERRED_SIZE,14,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(2).addComponent(btnWhiteMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(2).addComponent(btnBlueMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(2).addComponent(btnBlackMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addComponent(grave,GroupLayout.PREFERRED_SIZE,21,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(18).addComponent(library,GroupLayout.PREFERRED_SIZE,19,GroupLayout.PREFERRED_SIZE)).addComponent(poisonLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE).addGroup(gl_panelBackground.createSequentialGroup().addGap(20).addComponent(btnRedMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addComponent(manaCountLabelW,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE))).addGap(3).addComponent(manaCountLabelR,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addComponent(manaCountLabelB,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE).addGroup(gl_panelBackground.createSequentialGroup().addGap(19).addComponent(btnColorlessMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE))).addGap(5).addComponent(manaCountLabelX,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(20).addComponent(btnGreenMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(40).addComponent(manaCountLabelG,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(40).addComponent(libraryLabel,GroupLayout.PREFERRED_SIZE,25,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(18).addComponent(exileZone,GroupLayout.PREFERRED_SIZE,25,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(5).addComponent(graveLabel,GroupLayout.PREFERRED_SIZE,25,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(40).addComponent(exileLabel,GroupLayout.PREFERRED_SIZE,25,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addComponent(manaCountLabelU,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE)))).addGroup(gl_panelBackground.createSequentialGroup().addGap(6).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addComponent(btnPlayer,Alignment.TRAILING,GroupLayout.DEFAULT_SIZE,GroupLayout.DEFAULT_SIZE,Short.MAX_VALUE).addComponent(timerLabel,Alignment.TRAILING,GroupLayout.DEFAULT_SIZE,GroupLayout.DEFAULT_SIZE,Short.MAX_VALUE).addComponent(avatar,Alignment.TRAILING,GroupLayout.DEFAULT_SIZE,80,Short.MAX_VALUE)).addGap(14)).addGroup(gl_panelBackground.createSequentialGroup().addGap(6).addComponent(zonesPanel,GroupLayout.DEFAULT_SIZE,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE).addGap(14)));
  gl_panelBackground.setVerticalGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(6).addComponent(avatar,GroupLayout.PREFERRED_SIZE,80,GroupLayout.PREFERRED_SIZE).addPreferredGap(ComponentPlacement.RELATED).addComponent(btnPlayer).addComponent(timerLabel).addGap(1).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addComponent(life,GroupLayout.PREFERRED_SIZE,18,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addComponent(hand,GroupLayout.PREFERRED_SIZE,18,GroupLayout.PREFERRED_SIZE)).addComponent(lifeLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE).addComponent(handLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE)).addGap(1).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(4).addComponent(poison,GroupLayout.PREFERRED_SIZE,14,GroupLayout.PREFERRED_SIZE).addGap(4).addComponent(btnWhiteMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE).addGap(2).addComponent(btnBlueMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE).addGap(2).addComponent(btnBlackMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE).addGap(5).addComponent(grave,GroupLayout.PREFERRED_SIZE,21,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addComponent(library,GroupLayout.PREFERRED_SIZE,19,GroupLayout.PREFERRED_SIZE)).addComponent(poisonLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE)).addGap(2).addComponent(btnRedMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(14).addComponent(manaCountLabelW,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(14).addComponent(manaCountLabelR,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE))).addGap(4).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addComponent(manaCountLabelB,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE).addGroup(gl_panelBackground.createSequentialGroup().addGap(8).addComponent(btnColorlessMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addComponent(manaCountLabelX,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE))).addGroup(gl_panelBackground.createSequentialGroup().addGap(39).addComponent(btnGreenMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(31).addComponent(manaCountLabelG,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE)).addComponent(libraryLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE).addGroup(gl_panelBackground.createSequentialGroup().addGap(76).addComponent(exileZone,GroupLayout.PREFERRED_SIZE,21,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(76).addComponent(graveLabel,GroupLayout.PREFERRED_SIZE,21,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(76).addComponent(exileLabel,GroupLayout.PREFERRED_SIZE,21,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(31).addComponent(manaCountLabelU,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE))).addPreferredGap(ComponentPlacement.RELATED).addComponent(zonesPanel,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE)));
  panelBackground.setLayout(gl_panelBackground);
  GroupLayout groupLayout=new GroupLayout(this);
  groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout.createSequentialGroup().addComponent(panelBackground,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE)));
  groupLayout.setVerticalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout.createSequentialGroup().addComponent(panelBackground,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE)));
  setLayout(groupLayout);
}

Fixed version (ground truth):
/** 
 * This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
 */
@SuppressWarnings("String_Node_Str") private void initComponents(){
  panelBackground=new MageRoundPane();
  panelBackground.setPreferredSize(new Dimension(PANEL_WIDTH - 2,PANEL_HEIGHT));
  Rectangle r=new Rectangle(80,80);
  timerLabel=new JLabel();
  lifeLabel=new JLabel();
  handLabel=new JLabel();
  poisonLabel=new JLabel();
  libraryLabel=new JLabel();
  setOpaque(false);
  panelBackground.setXOffset(3);
  panelBackground.setYOffset(3);
  panelBackground.setVisible(true);
  Image image=ImageHelper.getImageFromResources(DEFAULT_AVATAR_PATH);
  topCardPanel=Plugins.getInstance().getMageCard(new CardView(CardRepository.instance.findCard("String_Node_Str").getMockCard()),bigCard,topCardDimension,gameId,true);
  topCardPanel.setVisible(false);
  panelBackground.add(topCardPanel);
  BufferedImage resized=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(image,BufferedImage.TYPE_INT_ARGB),r);
  avatar=new HoverButton("String_Node_Str",resized,resized,resized,r);
  String showPlayerNamePermanently=MageFrame.getPreferences().get(PreferencesDialog.KEY_SHOW_PLAYER_NAMES_PERMANENTLY,"String_Node_Str");
  if (showPlayerNamePermanently.equals("String_Node_Str")) {
    avatar.setTextAlwaysVisible(true);
  }
  avatar.setTextOffsetButtonY(10);
  avatar.setObserver(new Command(){
    @Override public void execute(){
      session.sendPlayerUUID(gameId,playerId);
    }
  }
);
  timerLabel.setToolTipText("String_Node_Str");
  timerLabel.setSize(80,12);
  timerLabel.setHorizontalAlignment(SwingConstants.CENTER);
  r=new Rectangle(18,18);
  lifeLabel.setToolTipText("String_Node_Str");
  Image imageLife=ImageHelper.getImageFromResources("String_Node_Str");
  BufferedImage resizedLife=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(imageLife,BufferedImage.TYPE_INT_ARGB),r);
  life=new ImagePanel(resizedLife,ImagePanel.ACTUAL);
  life.setToolTipText("String_Node_Str");
  life.setOpaque(false);
  r=new Rectangle(18,18);
  handLabel.setToolTipText("String_Node_Str");
  Image imageHand=ImageHelper.getImageFromResources("String_Node_Str");
  BufferedImage resizedHand=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(imageHand,BufferedImage.TYPE_INT_ARGB),r);
  hand=new ImagePanel(resizedHand,ImagePanel.ACTUAL);
  hand.setToolTipText("String_Node_Str");
  hand.setOpaque(false);
  poisonLabel.setText("String_Node_Str");
  r=new Rectangle(14,14);
  poisonLabel.setToolTipText("String_Node_Str");
  Image imagePoison=ImageHelper.getImageFromResources("String_Node_Str");
  BufferedImage resizedPoison=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(imagePoison,BufferedImage.TYPE_INT_ARGB),r);
  poison=new ImagePanel(resizedPoison,ImagePanel.ACTUAL);
  poison.setToolTipText("String_Node_Str");
  poison.setOpaque(false);
  r=new Rectangle(19,19);
  libraryLabel.setToolTipText("String_Node_Str");
  Image imageLibrary=ImageHelper.getImageFromResources("String_Node_Str");
  BufferedImage resizedLibrary=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(imageLibrary,BufferedImage.TYPE_INT_ARGB),r);
  library=new ImagePanel(resizedLibrary,ImagePanel.ACTUAL);
  library.setToolTipText("String_Node_Str");
  library.setOpaque(false);
  graveLabel=new JLabel();
  r=new Rectangle(21,21);
  graveLabel.setToolTipText("String_Node_Str");
  Image imageGrave=ImageHelper.getImageFromResources("String_Node_Str");
  BufferedImage resizedGrave=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(imageGrave,BufferedImage.TYPE_INT_ARGB),r);
  grave=new HoverButton(null,resizedGrave,resizedGrave,resizedGrave,r);
  grave.setToolTipText("String_Node_Str");
  grave.setOpaque(false);
  grave.setObserver(new Command(){
    @Override public void execute(){
      btnGraveActionPerformed(null);
    }
  }
);
  exileLabel=new JLabel();
  exileLabel.setToolTipText("String_Node_Str");
  image=ImageHelper.getImageFromResources("String_Node_Str");
  r=new Rectangle(21,21);
  resized=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(image,BufferedImage.TYPE_INT_ARGB),r);
  exileZone=new HoverButton(null,resized,resized,resized,r);
  exileZone.setToolTipText("String_Node_Str");
  exileZone.setOpaque(false);
  exileZone.setObserver(new Command(){
    @Override public void execute(){
      btnExileZoneActionPerformed(null);
    }
  }
);
  exileZone.setBounds(25,0,21,21);
  r=new Rectangle(25,21);
  image=ImageHelper.getImageFromResources("String_Node_Str");
  resized=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(image,BufferedImage.TYPE_INT_ARGB),r);
  cheat=new JButton();
  cheat.setIcon(new ImageIcon(resized));
  cheat.setToolTipText("String_Node_Str");
  cheat.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      btnCheatActionPerformed(e);
    }
  }
);
  zonesPanel=new JPanel();
  zonesPanel.setPreferredSize(new Dimension(100,20));
  zonesPanel.setSize(100,20);
  zonesPanel.setLayout(null);
  image=ImageHelper.getImageFromResources("String_Node_Str");
  r=new Rectangle(21,21);
  resized=ImageHelper.getResizedImage(BufferedImageBuilder.bufferImage(image,BufferedImage.TYPE_INT_ARGB),r);
  commandZone=new HoverButton(null,resized,resized,resized,r);
  commandZone.setToolTipText("String_Node_Str");
  commandZone.setOpaque(false);
  commandZone.setObserver(new Command(){
    @Override public void execute(){
      btnCommandZoneActionPerformed(null);
    }
  }
);
  commandZone.setBounds(5,0,21,21);
  zonesPanel.add(commandZone);
  cheat.setBounds(28,0,25,21);
  zonesPanel.add(cheat);
  btnPlayer=new JButton();
  btnPlayer.setText("String_Node_Str");
  btnPlayer.setVisible(false);
  btnPlayer.setToolTipText("String_Node_Str");
  btnPlayer.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      session.sendPlayerUUID(gameId,playerId);
    }
  }
);
  JLabel manaCountLabelW=new JLabel();
  manaCountLabelW.setToolTipText("String_Node_Str");
  manaCountLabelW.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelW);
  r=new Rectangle(12,12);
  BufferedImage imageManaW=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnWhiteMana=new HoverButton(null,imageManaW,imageManaW,imageManaW,r);
  btnWhiteMana.setToolTipText("String_Node_Str");
  btnWhiteMana.setOpaque(false);
  btnWhiteMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.WHITE);
    }
  }
);
  JLabel manaCountLabelU=new JLabel();
  manaCountLabelU.setToolTipText("String_Node_Str");
  manaCountLabelU.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelU);
  r=new Rectangle(12,12);
  BufferedImage imageManaU=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnBlueMana=new HoverButton(null,imageManaU,imageManaU,imageManaU,r);
  btnBlueMana.setToolTipText("String_Node_Str");
  btnBlueMana.setOpaque(false);
  btnBlueMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.BLUE);
    }
  }
);
  JLabel manaCountLabelB=new JLabel();
  manaCountLabelB.setToolTipText("String_Node_Str");
  manaCountLabelB.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelB);
  r=new Rectangle(12,12);
  BufferedImage imageManaB=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnBlackMana=new HoverButton(null,imageManaB,imageManaB,imageManaB,r);
  btnBlackMana.setToolTipText("String_Node_Str");
  btnBlackMana.setOpaque(false);
  btnBlackMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.BLACK);
    }
  }
);
  JLabel manaCountLabelR=new JLabel();
  manaCountLabelR.setToolTipText("String_Node_Str");
  manaCountLabelR.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelR);
  r=new Rectangle(12,12);
  BufferedImage imageManaR=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnRedMana=new HoverButton(null,imageManaR,imageManaR,imageManaR,r);
  btnRedMana.setToolTipText("String_Node_Str");
  btnRedMana.setOpaque(false);
  btnRedMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.RED);
    }
  }
);
  JLabel manaCountLabelG=new JLabel();
  manaCountLabelG.setToolTipText("String_Node_Str");
  manaCountLabelG.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelG);
  r=new Rectangle(12,12);
  BufferedImage imageManaG=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnGreenMana=new HoverButton(null,imageManaG,imageManaG,imageManaG,r);
  btnGreenMana.setToolTipText("String_Node_Str");
  btnGreenMana.setOpaque(false);
  btnGreenMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.GREEN);
    }
  }
);
  JLabel manaCountLabelX=new JLabel();
  manaCountLabelX.setToolTipText("String_Node_Str");
  manaCountLabelX.setText("String_Node_Str");
  manaLabels.put("String_Node_Str",manaCountLabelX);
  r=new Rectangle(12,12);
  BufferedImage imageManaX=ManaSymbols.getManaSymbolImageSmall("String_Node_Str");
  HoverButton btnColorlessMana=new HoverButton(null,imageManaX,imageManaX,imageManaX,r);
  btnColorlessMana.setToolTipText("String_Node_Str");
  btnColorlessMana.setOpaque(false);
  btnColorlessMana.setObserver(new Command(){
    @Override public void execute(){
      btnManaActionPerformed(ManaType.COLORLESS);
    }
  }
);
  GroupLayout gl_panelBackground=new GroupLayout(panelBackground);
  gl_panelBackground.setHorizontalGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(9).addComponent(life,GroupLayout.PREFERRED_SIZE,18,GroupLayout.PREFERRED_SIZE).addGap(3).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(18).addComponent(hand,GroupLayout.PREFERRED_SIZE,18,GroupLayout.PREFERRED_SIZE)).addComponent(lifeLabel,GroupLayout.PREFERRED_SIZE,25,GroupLayout.PREFERRED_SIZE)).addGap(4).addComponent(handLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(9).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(3).addComponent(poison,GroupLayout.PREFERRED_SIZE,14,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(2).addComponent(btnWhiteMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(2).addComponent(btnBlueMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(2).addComponent(btnBlackMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addComponent(grave,GroupLayout.PREFERRED_SIZE,21,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(18).addComponent(library,GroupLayout.PREFERRED_SIZE,19,GroupLayout.PREFERRED_SIZE)).addComponent(poisonLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE).addGroup(gl_panelBackground.createSequentialGroup().addGap(20).addComponent(btnRedMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addComponent(manaCountLabelW,GroupLayout.PREFERRED_SIZE,MANA_LABEL_SIZE_HORIZONTAL,GroupLayout.PREFERRED_SIZE))).addGap(3).addComponent(manaCountLabelR,GroupLayout.PREFERRED_SIZE,MANA_LABEL_SIZE_HORIZONTAL,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addComponent(manaCountLabelB,GroupLayout.PREFERRED_SIZE,MANA_LABEL_SIZE_HORIZONTAL,GroupLayout.PREFERRED_SIZE).addGroup(gl_panelBackground.createSequentialGroup().addGap(19).addComponent(btnColorlessMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE))).addGap(5).addComponent(manaCountLabelX,GroupLayout.PREFERRED_SIZE,MANA_LABEL_SIZE_HORIZONTAL,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(20).addComponent(btnGreenMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(40).addComponent(manaCountLabelG,GroupLayout.PREFERRED_SIZE,MANA_LABEL_SIZE_HORIZONTAL,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(40).addComponent(libraryLabel,GroupLayout.PREFERRED_SIZE,25,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(18).addComponent(exileZone,GroupLayout.PREFERRED_SIZE,25,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(5).addComponent(graveLabel,GroupLayout.PREFERRED_SIZE,25,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(40).addComponent(exileLabel,GroupLayout.PREFERRED_SIZE,25,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addComponent(manaCountLabelU,GroupLayout.PREFERRED_SIZE,MANA_LABEL_SIZE_HORIZONTAL,GroupLayout.PREFERRED_SIZE)))).addGroup(gl_panelBackground.createSequentialGroup().addGap(6).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addComponent(btnPlayer,Alignment.TRAILING,GroupLayout.DEFAULT_SIZE,GroupLayout.DEFAULT_SIZE,Short.MAX_VALUE).addComponent(timerLabel,Alignment.TRAILING,GroupLayout.DEFAULT_SIZE,GroupLayout.DEFAULT_SIZE,Short.MAX_VALUE).addComponent(avatar,Alignment.TRAILING,GroupLayout.DEFAULT_SIZE,80,Short.MAX_VALUE)).addGap(14)).addGroup(gl_panelBackground.createSequentialGroup().addGap(6).addComponent(zonesPanel,GroupLayout.DEFAULT_SIZE,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE).addGap(14)));
  gl_panelBackground.setVerticalGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(6).addComponent(avatar,GroupLayout.PREFERRED_SIZE,80,GroupLayout.PREFERRED_SIZE).addPreferredGap(ComponentPlacement.RELATED).addComponent(btnPlayer).addComponent(timerLabel).addGap(1).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addComponent(life,GroupLayout.PREFERRED_SIZE,18,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addComponent(hand,GroupLayout.PREFERRED_SIZE,18,GroupLayout.PREFERRED_SIZE)).addComponent(lifeLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE).addComponent(handLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE)).addGap(1).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(4).addComponent(poison,GroupLayout.PREFERRED_SIZE,14,GroupLayout.PREFERRED_SIZE).addGap(4).addComponent(btnWhiteMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE).addGap(2).addComponent(btnBlueMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE).addGap(2).addComponent(btnBlackMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE).addGap(5).addComponent(grave,GroupLayout.PREFERRED_SIZE,21,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addGroup(gl_panelBackground.createSequentialGroup().addGap(1).addComponent(library,GroupLayout.PREFERRED_SIZE,19,GroupLayout.PREFERRED_SIZE)).addComponent(poisonLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE)).addGap(2).addComponent(btnRedMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(14).addComponent(manaCountLabelW,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(14).addComponent(manaCountLabelR,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE))).addGap(4).addGroup(gl_panelBackground.createParallelGroup(Alignment.LEADING).addComponent(manaCountLabelB,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE).addGroup(gl_panelBackground.createSequentialGroup().addGap(8).addComponent(btnColorlessMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addComponent(manaCountLabelX,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE))).addGroup(gl_panelBackground.createSequentialGroup().addGap(39).addComponent(btnGreenMana,GroupLayout.PREFERRED_SIZE,15,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(31).addComponent(manaCountLabelG,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE)).addComponent(libraryLabel,GroupLayout.PREFERRED_SIZE,20,GroupLayout.PREFERRED_SIZE).addGroup(gl_panelBackground.createSequentialGroup().addGap(76).addComponent(exileZone,GroupLayout.PREFERRED_SIZE,21,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(76).addComponent(graveLabel,GroupLayout.PREFERRED_SIZE,21,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(76).addComponent(exileLabel,GroupLayout.PREFERRED_SIZE,21,GroupLayout.PREFERRED_SIZE)).addGroup(gl_panelBackground.createSequentialGroup().addGap(31).addComponent(manaCountLabelU,GroupLayout.PREFERRED_SIZE,30,GroupLayout.PREFERRED_SIZE))).addPreferredGap(ComponentPlacement.RELATED).addComponent(zonesPanel,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE)));
  panelBackground.setLayout(gl_panelBackground);
  GroupLayout groupLayout=new GroupLayout(this);
  groupLayout.setHorizontalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout.createSequentialGroup().addComponent(panelBackground,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE)));
  groupLayout.setVerticalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addGroup(groupLayout.createSequentialGroup().addComponent(panelBackground,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE,GroupLayout.PREFERRED_SIZE)));
  setLayout(groupLayout);
}