Program: 86639
Project: 86639
Buggy source:
private void createUI(){
  destroyChildren();
  Rectangle bounds=getBounds();
  if (this.title != null)   title.destroy();
  this.title=new Label("String_Node_Str");
  this.title.setTheme(theme);
  this.title.setBounds(new Rectangle(bounds));
  this.title.getBounds().height=30;
  this.title.getBounds().y+=30;
  this.title.setFont(theme.getSecondaryFontName());
  this.title.setHorizontalTextAlignment(TextAlignment.CENTER);
  this.title.setTextSize(32);
  int yInc=60;
  Vector2f pos=new Vector2f(bounds.width / 2,100);
  if (this.weaponClasses != null)   this.weaponClasses.destroy();
  this.weaponClasses=setupButton(pos,"String_Node_Str");
  pos.y+=yInc;
  this.weaponClasses.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      weaponDialog.getBounds().setLocation(getBounds().x,getBounds().y - 150);
      weaponDialog.show();
    }
  }
);
  if (this.switchTeam != null)   this.switchTeam.destroy();
  this.switchTeam=setupButton(pos,"String_Node_Str");
  pos.y+=yInc;
  this.switchTeam.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      switchTeamDialog.getBounds().setLocation(getBounds().x,getBounds().y);
      switchTeamDialog.show();
    }
  }
);
  if (this.options != null)   this.options.destroy();
  this.options=setupButton(pos,"String_Node_Str");
  if (this.leaveGame != null)   this.leaveGame.destroy();
  this.leaveGame=new Button();
  this.leaveGame.setText("String_Node_Str");
  this.leaveGame.setBounds(new Rectangle(0,0,100,40));
  this.leaveGame.getBounds().centerAround(bounds.x + 200,bounds.y + bounds.height - 20);
  this.leaveGame.setEnableGradiant(false);
  this.leaveGame.setTheme(theme);
  this.leaveGame.getTextLabel().setFont(theme.getSecondaryFontName());
  this.leaveGame.getTextLabel().setForegroundColor(theme.getForegroundColor());
  this.leaveGame.setTextSize(22);
  this.leaveGame.setHoverTextSize(26);
  addWidget(leaveGame);
  addWidget(title);
}

Fixed version (ground truth):
private void createUI(){
  destroyChildren();
  Rectangle bounds=getBounds();
  if (this.title != null)   title.destroy();
  this.title=new Label("String_Node_Str");
  this.title.setTheme(theme);
  this.title.setBounds(new Rectangle(bounds));
  this.title.getBounds().height=30;
  this.title.getBounds().y+=30;
  this.title.setFont(theme.getSecondaryFontName());
  this.title.setHorizontalTextAlignment(TextAlignment.CENTER);
  this.title.setTextSize(32);
  int yInc=60;
  Vector2f pos=new Vector2f(bounds.width / 2,100);
  if (this.weaponClasses != null)   this.weaponClasses.destroy();
  this.weaponClasses=setupButton(pos,"String_Node_Str");
  pos.y+=yInc;
  this.weaponClasses.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      weaponDialog.getBounds().setLocation(getBounds().x,getBounds().y - 20);
      weaponDialog.show();
    }
  }
);
  if (this.switchTeam != null)   this.switchTeam.destroy();
  this.switchTeam=setupButton(pos,"String_Node_Str");
  pos.y+=yInc;
  this.switchTeam.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      switchTeamDialog.getBounds().setLocation(getBounds().x,getBounds().y);
      switchTeamDialog.show();
    }
  }
);
  if (this.options != null)   this.options.destroy();
  this.options=setupButton(pos,"String_Node_Str");
  if (this.leaveGame != null)   this.leaveGame.destroy();
  this.leaveGame=new Button();
  this.leaveGame.setText("String_Node_Str");
  this.leaveGame.setBounds(new Rectangle(0,0,100,40));
  this.leaveGame.getBounds().centerAround(bounds.x + 200,bounds.y + bounds.height - 20);
  this.leaveGame.setEnableGradiant(false);
  this.leaveGame.setTheme(theme);
  this.leaveGame.getTextLabel().setFont(theme.getSecondaryFontName());
  this.leaveGame.getTextLabel().setForegroundColor(theme.getForegroundColor());
  this.leaveGame.setTextSize(22);
  this.leaveGame.setHoverTextSize(26);
  addWidget(leaveGame);
  addWidget(title);
}