Program: 165655
Project: 165655
Buggy source:
@Override public void initGui(){
  super.initGui();
  int maxEnergyStored=tileEntity.getMaxEnergyStored();
  energyBar=new EnergyBar(mc,this).setFilledRectThickness(1).setVertical().setDesiredWidth(10).setDesiredHeight(50).setMaxValue(maxEnergyStored).setShowText(false);
  energyBar.setValue(GenericEnergyStorageTileEntity.getCurrentRF());
  openViewButton=new ToggleButton(mc,this).setCheckMarker(false).setText("String_Node_Str").setTooltips("String_Node_Str");
  openViewButton.setPressed(tileEntity.isOpenWideView());
  openViewButton.addButtonEvent(widget -> toggleView());
  upButton=new Button(mc,this).setText("String_Node_Str").setTooltips("String_Node_Str").addButtonEvent(widget -> moveUp());
  topButton=new Button(mc,this).setText("String_Node_Str").setTooltips("String_Node_Str").addButtonEvent(widget -> moveTop());
  downButton=new Button(mc,this).setText("String_Node_Str").setTooltips("String_Node_Str").addButtonEvent(widget -> moveDown());
  bottomButton=new Button(mc,this).setText("String_Node_Str").setTooltips("String_Node_Str").addButtonEvent(widget -> moveBottom());
  removeButton=new Button(mc,this).setText("String_Node_Str").setTooltips("String_Node_Str").addButtonEvent(widget -> removeFromList());
  Panel energyPanel=new Panel(mc,this).setLayout(new VerticalLayout().setVerticalMargin(0).setSpacing(1)).setDesiredWidth(10);
  energyPanel.addChild(openViewButton).addChild(energyBar).addChild(topButton).addChild(upButton).addChild(downButton).addChild(bottomButton).addChild(new Label(mc,this).setText("String_Node_Str")).addChild(removeButton);
  exportToStarred=new ImageChoiceLabel(mc,this).setName("String_Node_Str").setLayoutHint(12,223,13,13);
  exportToStarred.addChoice("String_Node_Str","String_Node_Str",guielements,131,19);
  exportToStarred.addChoice("String_Node_Str","String_Node_Str",guielements,115,19);
  storagePanel=makeStoragePanel(energyPanel);
  itemPanel=makeItemPanel();
  Button scanButton=new Button(mc,this).setText("String_Node_Str").setDesiredWidth(50).setDesiredHeight(14).addButtonEvent(parent -> RFToolsMessages.INSTANCE.sendToServer(new PacketGetInfoFromServer(RFTools.MODID,new InventoriesInfoPacketServer(tileEntity.getDimension(),tileEntity.getStorageScannerPos(),true))));
  if (RFTools.instance.xnet) {
    if (StorageScannerConfiguration.xnetRequired) {
      scanButton.setTooltips("String_Node_Str","String_Node_Str","String_Node_Str");
    }
 else {
      scanButton.setTooltips("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
    }
  }
 else {
    scanButton.setTooltips("String_Node_Str","String_Node_Str");
  }
  radiusLabel=new ScrollableLabel(mc,this).setName("String_Node_Str").setRealMinimum(RFTools.instance.xnet ? 0 : 1).setRealMaximum(20);
  visibleRadiusLabel=new Label(mc,this);
  visibleRadiusLabel.setDesiredWidth(40);
  searchField=new TextField(mc,this).addTextEvent((parent,newText) -> {
    storageList.clearHilightedRows();
    fromServer_foundInventories.clear();
    startSearch(newText);
  }
);
  Panel searchPanel=new Panel(mc,this).setLayoutHint(new PositionalLayout.PositionalHint(8,142,256 - 11,18)).setLayout(new HorizontalLayout()).setDesiredHeight(18).addChild(new Label(mc,this).setText("String_Node_Str")).addChild(searchField);
  Slider radiusSlider=new Slider(mc,this).setHorizontal().setTooltips("String_Node_Str").setMinimumKnobSize(12).setDesiredHeight(14).setScrollable(radiusLabel);
  Panel scanPanel=new Panel(mc,this).setLayoutHint(8,162,74,54).setFilledRectThickness(-2).setFilledBackground(StyleConfig.colorListBackground).setLayout(new VerticalLayout().setVerticalMargin(6).setSpacing(1)).addChild(scanButton);
  if (!(RFTools.instance.xnet && StorageScannerConfiguration.xnetRequired)) {
    scanPanel.addChild(radiusSlider);
  }
  scanPanel.addChild(visibleRadiusLabel);
  if (tileEntity.isDummy()) {
    scanButton.setEnabled(false);
    radiusLabel.setVisible(false);
    radiusSlider.setVisible(false);
  }
  Panel toplevel=new Panel(mc,this).setBackground(iconLocation).setLayout(new PositionalLayout()).addChild(storagePanel).addChild(itemPanel).addChild(searchPanel).addChild(scanPanel).addChild(exportToStarred);
  toplevel.setBounds(new Rectangle(guiLeft,guiTop,xSize,ySize));
  window=new Window(this,toplevel);
  window.bind(RFToolsMessages.INSTANCE,"String_Node_Str",tileEntity,StorageScannerTileEntity.VALUE_EXPORT.getName());
  window.bind(RFToolsMessages.INSTANCE,"String_Node_Str",tileEntity,StorageScannerTileEntity.VALUE_RADIUS.getName());
  Keyboard.enableRepeatEvents(true);
  fromServer_foundInventories.clear();
  fromServer_inventory.clear();
  if (tileEntity.isDummy()) {
    fromServer_inventories.clear();
  }
 else {
    tileEntity.requestRfFromServer(RFTools.MODID);
  }
  BlockPos pos=tileEntity.getCraftingGridContainerPos();
  craftingGrid.initGui(modBase,network,mc,this,pos,tileEntity.getCraftingGridProvider(),guiLeft,guiTop,xSize,ySize);
  sendServerCommand(RFTools.MODID,CommandHandler.CMD_REQUEST_GRID_SYNC,Arguments.builder().value(pos).build());
  if (StorageScannerConfiguration.hilightStarredOnGuiOpen) {
    storageList.setSelected(0);
  }
  init=true;
}

Fixed version (ground truth):
@Override public void initGui(){
  super.initGui();
  int maxEnergyStored=tileEntity.getMaxEnergyStored();
  energyBar=new EnergyBar(mc,this).setFilledRectThickness(1).setVertical().setDesiredWidth(10).setDesiredHeight(50).setMaxValue(maxEnergyStored).setShowText(false);
  energyBar.setValue(GenericEnergyStorageTileEntity.getCurrentRF());
  openViewButton=new ToggleButton(mc,this).setCheckMarker(false).setText("String_Node_Str").setTooltips("String_Node_Str");
  openViewButton.setPressed(tileEntity.isOpenWideView());
  openViewButton.addButtonEvent(widget -> toggleView());
  upButton=new Button(mc,this).setText("String_Node_Str").setTooltips("String_Node_Str").addButtonEvent(widget -> moveUp());
  topButton=new Button(mc,this).setText("String_Node_Str").setTooltips("String_Node_Str").addButtonEvent(widget -> moveTop());
  downButton=new Button(mc,this).setText("String_Node_Str").setTooltips("String_Node_Str").addButtonEvent(widget -> moveDown());
  bottomButton=new Button(mc,this).setText("String_Node_Str").setTooltips("String_Node_Str").addButtonEvent(widget -> moveBottom());
  removeButton=new Button(mc,this).setText("String_Node_Str").setTooltips("String_Node_Str").addButtonEvent(widget -> removeFromList());
  Panel energyPanel=new Panel(mc,this).setLayout(new VerticalLayout().setVerticalMargin(0).setSpacing(1)).setDesiredWidth(10);
  energyPanel.addChild(openViewButton).addChild(energyBar).addChild(topButton).addChild(upButton).addChild(downButton).addChild(bottomButton).addChild(new Label(mc,this).setText("String_Node_Str")).addChild(removeButton);
  exportToStarred=new ImageChoiceLabel(mc,this).setName("String_Node_Str").setLayoutHint(12,223,13,13);
  exportToStarred.addChoice("String_Node_Str","String_Node_Str",guielements,131,19);
  exportToStarred.addChoice("String_Node_Str","String_Node_Str",guielements,115,19);
  storagePanel=makeStoragePanel(energyPanel);
  itemPanel=makeItemPanel();
  Button scanButton=new Button(mc,this).setText("String_Node_Str").setDesiredWidth(50).setDesiredHeight(14).addButtonEvent(parent -> RFToolsMessages.INSTANCE.sendToServer(new PacketGetInfoFromServer(RFTools.MODID,new InventoriesInfoPacketServer(tileEntity.getDimension(),tileEntity.getStorageScannerPos(),true))));
  if (RFTools.instance.xnet) {
    if (StorageScannerConfiguration.xnetRequired) {
      scanButton.setTooltips("String_Node_Str","String_Node_Str","String_Node_Str");
    }
 else {
      scanButton.setTooltips("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
    }
  }
 else {
    scanButton.setTooltips("String_Node_Str","String_Node_Str");
  }
  radiusLabel=new ScrollableLabel(mc,this).setLayoutHint(1,1,1,1).setName("String_Node_Str").setVisible(false).setRealMinimum(RFTools.instance.xnet ? 0 : 1).setRealMaximum(20);
  visibleRadiusLabel=new Label(mc,this);
  visibleRadiusLabel.setDesiredWidth(40);
  searchField=new TextField(mc,this).addTextEvent((parent,newText) -> {
    storageList.clearHilightedRows();
    fromServer_foundInventories.clear();
    startSearch(newText);
  }
);
  Panel searchPanel=new Panel(mc,this).setLayoutHint(new PositionalLayout.PositionalHint(8,142,256 - 11,18)).setLayout(new HorizontalLayout()).setDesiredHeight(18).addChild(new Label(mc,this).setText("String_Node_Str")).addChild(searchField);
  Slider radiusSlider=new Slider(mc,this).setHorizontal().setTooltips("String_Node_Str").setMinimumKnobSize(12).setDesiredHeight(14).setScrollableName("String_Node_Str");
  Panel scanPanel=new Panel(mc,this).setLayoutHint(8,162,74,54).setFilledRectThickness(-2).setFilledBackground(StyleConfig.colorListBackground).setLayout(new VerticalLayout().setVerticalMargin(6).setSpacing(1)).addChild(scanButton);
  if (!(RFTools.instance.xnet && StorageScannerConfiguration.xnetRequired)) {
    scanPanel.addChild(radiusSlider);
  }
  scanPanel.addChildren(visibleRadiusLabel,radiusLabel);
  if (tileEntity.isDummy()) {
    scanButton.setEnabled(false);
    radiusSlider.setVisible(false);
  }
  Panel toplevel=new Panel(mc,this).setBackground(iconLocation).setLayout(new PositionalLayout()).addChild(storagePanel).addChild(itemPanel).addChild(searchPanel).addChild(scanPanel).addChild(exportToStarred);
  toplevel.setBounds(new Rectangle(guiLeft,guiTop,xSize,ySize));
  window=new Window(this,toplevel);
  window.bind(RFToolsMessages.INSTANCE,"String_Node_Str",tileEntity,StorageScannerTileEntity.VALUE_EXPORT.getName());
  window.bind(RFToolsMessages.INSTANCE,"String_Node_Str",tileEntity,StorageScannerTileEntity.VALUE_RADIUS.getName());
  Keyboard.enableRepeatEvents(true);
  fromServer_foundInventories.clear();
  fromServer_inventory.clear();
  if (tileEntity.isDummy()) {
    fromServer_inventories.clear();
  }
 else {
    tileEntity.requestRfFromServer(RFTools.MODID);
  }
  BlockPos pos=tileEntity.getCraftingGridContainerPos();
  craftingGrid.initGui(modBase,network,mc,this,pos,tileEntity.getCraftingGridProvider(),guiLeft,guiTop,xSize,ySize);
  sendServerCommand(RFTools.MODID,CommandHandler.CMD_REQUEST_GRID_SYNC,Arguments.builder().value(pos).build());
  if (StorageScannerConfiguration.hilightStarredOnGuiOpen) {
    storageList.setSelected(0);
  }
  init=true;
}