Program: 45780
Project: 45780
Buggy source:
/** 
 * Updates the GUI items in this panel for the currently selected cell. If there is nothing selected, do nothing. NOTE: This method assumes it is being called in the AWT Event Thread.
 */
public void updateGUI(){
  positionHUDPanel.updateGUI();
  Cell cell=getSelectedCell();
  if (cell == null) {
    translateToggleButton.setSelected(false);
    translateToggleButton.setEnabled(false);
    rotateToggleButton.setSelected(false);
    rotateToggleButton.setEnabled(false);
    resizeToggleButton.setSelected(false);
    resizeToggleButton.setEnabled(false);
    sizeSlider.setValue(50);
    sizeSlider.setEnabled(false);
    return;
  }
  translateToggleButton.setEnabled(true);
  rotateToggleButton.setEnabled(true);
  resizeToggleButton.setEnabled(true);
  sizeSlider.setEnabled(true);
  CellComponent component=cell.getComponent(TranslateAffordanceCellComponent.class);
  translateToggleButton.setSelected(component != null);
  translateToggleButton.repaint();
  if (component != null) {
    float size=((AffordanceCellComponent)component).getSize();
    sizeSlider.setValue((int)((size - 1.0f) * 100.0f));
  }
 else {
    sizeSlider.setValue(50);
  }
  component=cell.getComponent(RotateAffordanceCellComponent.class);
  rotateToggleButton.setSelected(component != null);
  rotateToggleButton.repaint();
  component=cell.getComponent(ResizeAffordanceCellComponent.class);
  resizeToggleButton.setSelected(component != null);
  resizeToggleButton.repaint();
}

Fixed version (ground truth):
/** 
 * Updates the GUI items in this panel for the currently selected cell. If there is nothing selected, do nothing. NOTE: This method assumes it is being called in the AWT Event Thread.
 */
public void updateGUI(){
  positionHUDPanel.updateGUI();
  Cell cell=getSelectedCell();
  if (cell == null) {
    affordanceHUD.setName(BUNDLE.getString("String_Node_Str"));
    translateToggleButton.setSelected(false);
    translateToggleButton.setEnabled(false);
    rotateToggleButton.setSelected(false);
    rotateToggleButton.setEnabled(false);
    resizeToggleButton.setSelected(false);
    resizeToggleButton.setEnabled(false);
    sizeSlider.setValue(50);
    sizeSlider.setEnabled(false);
    return;
  }
  String name=BUNDLE.getString("String_Node_Str");
  name=MessageFormat.format(name,cell.getName());
  affordanceHUD.setName(name);
  Logger.getLogger(AffordanceHUDPanel.class.getName()).warning("String_Node_Str" + name);
  translateToggleButton.setEnabled(true);
  rotateToggleButton.setEnabled(true);
  resizeToggleButton.setEnabled(true);
  sizeSlider.setEnabled(true);
  CellComponent component=cell.getComponent(TranslateAffordanceCellComponent.class);
  translateToggleButton.setSelected(component != null);
  translateToggleButton.repaint();
  if (component != null) {
    float size=((AffordanceCellComponent)component).getSize();
    sizeSlider.setValue((int)((size - 1.0f) * 100.0f));
  }
 else {
    sizeSlider.setValue(50);
  }
  component=cell.getComponent(RotateAffordanceCellComponent.class);
  rotateToggleButton.setSelected(component != null);
  rotateToggleButton.repaint();
  component=cell.getComponent(ResizeAffordanceCellComponent.class);
  resizeToggleButton.setSelected(component != null);
  resizeToggleButton.repaint();
}