Program: 47186
Project: 47186
Buggy source:
public JComponent build(){
  Locale locale=new Locale(configuration.getLanguage());
  ComponentOrientation orientation=ComponentOrientation.getOrientation(locale);
  String colSpec=FormLayoutUtil.getColSpec("String_Node_Str",orientation);
  FormLayout layout=new FormLayout(colSpec,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  PanelBuilder builder=new PanelBuilder(layout);
  builder.border(Borders.DIALOG);
  builder.opaque(true);
  CellConstraints cc=new CellConstraints();
  JComponent cmp=builder.addSeparator(Messages.getString("String_Node_Str"),FormLayoutUtil.flip(cc.xyw(1,1,5),colSpec,orientation));
  cmp=(JComponent)cmp.getComponent(0);
  Font bold=cmp.getFont().deriveFont(Font.BOLD);
  Color fgColor=new Color(68,68,68);
  cmp.setFont(bold);
  renderers=new JPanel(new GuiUtil.WrapLayout(FlowLayout.CENTER,20,10));
  JScrollPane rsp=new JScrollPane(renderers,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  rsp.setBorder(BorderFactory.createEmptyBorder());
  rsp.setPreferredSize(new Dimension(0,260));
  rsp.getHorizontalScrollBar().setLocation(0,250);
  builder.add(rsp,cc.xyw(1,3,5));
  cmp=builder.addSeparator(null,FormLayoutUtil.flip(cc.xyw(1,5,5),colSpec,orientation));
  jl=new JLabel(Messages.getString("String_Node_Str"));
  builder.add(jl,FormLayoutUtil.flip(cc.xy(1,7,"String_Node_Str"),colSpec,orientation));
  jl.setFont(bold);
  jl.setForeground(fgColor);
  imagePanel=buildImagePanel("String_Node_Str");
  builder.add(imagePanel,FormLayoutUtil.flip(cc.xy(1,9),colSpec,orientation));
  jpb=new JProgressBar(0,100);
  jpb.setStringPainted(true);
  jpb.setForeground(new Color(75,140,181));
  jpb.setString(Messages.getString("String_Node_Str"));
  memBarUI=new GuiUtil.SegmentedProgressBarUI(Color.white,Color.gray);
  memBarUI.setActiveLabel("String_Node_Str",Color.white,0);
  memBarUI.setActiveLabel("String_Node_Str",Color.red,90);
  memBarUI.addSegment("String_Node_Str",memColor);
  memBarUI.addSegment("String_Node_Str",bufColor);
  memBarUI.setTickMarks(getTickMarks(),"String_Node_Str");
  jpb.setUI(memBarUI);
  JLabel mem=builder.addLabel("String_Node_Str" + Messages.getString("String_Node_Str") + "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str",FormLayoutUtil.flip(cc.xy(3,7),colSpec,orientation));
  mem.setForeground(fgColor);
  builder.add(jpb,FormLayoutUtil.flip(cc.xyw(3,9,1),colSpec,orientation));
  String bitColSpec="String_Node_Str";
  PanelBuilder bitrateBuilder=new PanelBuilder(new FormLayout(bitColSpec,"String_Node_Str"));
  bitrateLabel=new JLabel("String_Node_Str" + Messages.getString("String_Node_Str") + "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str");
  bitrateLabel.setForeground(fgColor);
  bitrateBuilder.add(bitrateLabel,FormLayoutUtil.flip(cc.xyw(1,1,3,"String_Node_Str"),colSpec,orientation));
  currentBitrateLabel=new JLabel(Messages.getString("String_Node_Str"));
  currentBitrateLabel.setForeground(fgColor);
  bitrateBuilder.add(currentBitrateLabel,FormLayoutUtil.flip(cc.xy(1,3),bitColSpec,orientation));
  currentBitrate=new JLabel("String_Node_Str");
  currentBitrate.setForeground(fgColor);
  bitrateBuilder.add(currentBitrate,FormLayoutUtil.flip(cc.xy(3,3),bitColSpec,orientation));
  peakBitrateLabel=new JLabel(Messages.getString("String_Node_Str"));
  peakBitrateLabel.setForeground(fgColor);
  bitrateBuilder.add(peakBitrateLabel,FormLayoutUtil.flip(cc.xy(1,5),bitColSpec,orientation));
  peakBitrate=new JLabel("String_Node_Str");
  peakBitrate.setForeground(fgColor);
  bitrateBuilder.add(peakBitrate,FormLayoutUtil.flip(cc.xy(3,5),bitColSpec,orientation));
  builder.add(bitrateBuilder.getPanel(),FormLayoutUtil.flip(cc.xywh(5,7,1,3,"String_Node_Str"),colSpec,orientation));
  JPanel panel=builder.getPanel();
  panel.applyComponentOrientation(orientation);
  JScrollPane scrollPane=new JScrollPane(panel,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
  scrollPane.setBorder(BorderFactory.createEmptyBorder());
  startMemoryUpdater();
  return scrollPane;
}

Fixed version (ground truth):
public JComponent build(){
  Locale locale=new Locale(configuration.getLanguage());
  ComponentOrientation orientation=ComponentOrientation.getOrientation(locale);
  String colSpec=FormLayoutUtil.getColSpec("String_Node_Str",orientation);
  FormLayout layout=new FormLayout(colSpec,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  PanelBuilder builder=new PanelBuilder(layout);
  builder.border(Borders.DIALOG);
  builder.opaque(true);
  CellConstraints cc=new CellConstraints();
  JComponent cmp=builder.addSeparator(Messages.getString("String_Node_Str"),FormLayoutUtil.flip(cc.xyw(1,1,5),colSpec,orientation));
  cmp=(JComponent)cmp.getComponent(0);
  Font bold=cmp.getFont().deriveFont(Font.BOLD);
  Color fgColor=new Color(68,68,68);
  cmp.setFont(bold);
  renderers=new JPanel(new GuiUtil.WrapLayout(FlowLayout.CENTER,20,10));
  JScrollPane rsp=new JScrollPane(renderers,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  rsp.setBorder(BorderFactory.createEmptyBorder());
  rsp.setPreferredSize(new Dimension(0,260));
  rsp.getHorizontalScrollBar().setLocation(0,250);
  builder.add(rsp,cc.xyw(1,3,5));
  cmp=builder.addSeparator(null,FormLayoutUtil.flip(cc.xyw(1,5,5),colSpec,orientation));
  jl=new JLabel(Messages.getString("String_Node_Str"));
  builder.add(jl,FormLayoutUtil.flip(cc.xy(1,7,"String_Node_Str"),colSpec,orientation));
  jl.setFont(bold);
  jl.setForeground(fgColor);
  imagePanel=buildImagePanel("String_Node_Str");
  builder.add(imagePanel,FormLayoutUtil.flip(cc.xy(1,9),colSpec,orientation));
  jpb=new JProgressBar(0,100);
  jpb.setStringPainted(true);
  jpb.setForeground(new Color(75,140,181));
  jpb.setString(Messages.getString("String_Node_Str"));
  memBarUI=new GuiUtil.SegmentedProgressBarUI(Color.white,Color.gray);
  memBarUI.setActiveLabel("String_Node_Str",Color.white,0);
  memBarUI.setActiveLabel("String_Node_Str",Color.red,90);
  memBarUI.addSegment("String_Node_Str",memColor);
  memBarUI.addSegment("String_Node_Str",bufColor);
  memBarUI.setTickMarks(getTickMarks(),"String_Node_Str");
  jpb.setUI(memBarUI);
  JLabel mem=builder.addLabel("String_Node_Str" + Messages.getString("String_Node_Str") + "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str",FormLayoutUtil.flip(cc.xy(3,7),colSpec,orientation));
  mem.setForeground(fgColor);
  builder.add(jpb,FormLayoutUtil.flip(cc.xyw(3,9,1),colSpec,orientation));
  String bitColSpec="String_Node_Str";
  PanelBuilder bitrateBuilder=new PanelBuilder(new FormLayout(bitColSpec,"String_Node_Str"));
  bitrateLabel=new JLabel("String_Node_Str" + Messages.getString("String_Node_Str") + "String_Node_Str"+ Messages.getString("String_Node_Str")+ "String_Node_Str");
  bitrateLabel.setForeground(fgColor);
  bitrateBuilder.add(bitrateLabel,FormLayoutUtil.flip(cc.xy(1,1),bitColSpec,orientation));
  currentBitrateLabel=new JLabel(Messages.getString("String_Node_Str"));
  currentBitrateLabel.setForeground(fgColor);
  bitrateBuilder.add(currentBitrateLabel,FormLayoutUtil.flip(cc.xy(1,3),bitColSpec,orientation));
  currentBitrate=new JLabel("String_Node_Str");
  currentBitrate.setForeground(fgColor);
  bitrateBuilder.add(currentBitrate,FormLayoutUtil.flip(cc.xy(3,3),bitColSpec,orientation));
  peakBitrateLabel=new JLabel(Messages.getString("String_Node_Str"));
  peakBitrateLabel.setForeground(fgColor);
  bitrateBuilder.add(peakBitrateLabel,FormLayoutUtil.flip(cc.xy(1,5),bitColSpec,orientation));
  peakBitrate=new JLabel("String_Node_Str");
  peakBitrate.setForeground(fgColor);
  bitrateBuilder.add(peakBitrate,FormLayoutUtil.flip(cc.xy(3,5),bitColSpec,orientation));
  builder.add(bitrateBuilder.getPanel(),FormLayoutUtil.flip(cc.xywh(5,7,1,3,"String_Node_Str"),colSpec,orientation));
  JPanel panel=builder.getPanel();
  panel.applyComponentOrientation(orientation);
  JScrollPane scrollPane=new JScrollPane(panel,JScrollPane.VERTICAL_SCROLLBAR_NEVER,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
  scrollPane.setBorder(BorderFactory.createEmptyBorder());
  startMemoryUpdater();
  return scrollPane;
}