Program: 32516
Project: 32516
Buggy source:
/** 
 * Construct a frame for search and browsing items from Amazon.
 */
private JPanel constructView(){
  final JLabel filterFieldLabel=new JLabel("String_Node_Str");
  filterFieldLabel.setFont(new Font("String_Node_Str",Font.BOLD,14));
  filterFieldLabel.setForeground(Color.WHITE);
  filterField=new JTextField(10);
  final SearchEngineTextMatcherEditor<Item> filterFieldMatcherEditor=new SearchEngineTextMatcherEditor<Item>(filterField,new ItemTextFilterator());
  final Set<SearchEngineTextMatcherEditor.Field<Item>> filterFields=new HashSet<SearchEngineTextMatcherEditor.Field<Item>>();
  filterFields.add(new SearchEngineTextMatcherEditor.Field<Item>("String_Node_Str",new TitleTextFilterator()));
  filterFields.add(new SearchEngineTextMatcherEditor.Field<Item>("String_Node_Str",new DirectorTextFilterator()));
  filterFieldMatcherEditor.setFields(filterFields);
  final SortedList<Item> sortedItemsList=new SortedList<Item>(itemEventList,null);
  final FilterList<Item> filteredItemsList=new FilterList<Item>(sortedItemsList,filterFieldMatcherEditor);
  final StartNewSearchActionListener startNewSearch=new StartNewSearchActionListener();
  final JLabel searchFieldLabel=new JLabel("String_Node_Str");
  searchFieldLabel.setFont(new Font("String_Node_Str",Font.BOLD,14));
  searchFieldLabel.setForeground(Color.WHITE);
  searchField=new JTextField(10);
  searchField.addActionListener(startNewSearch);
  final JButton searchButton=new JButton(GO);
  searchButton.setBorder(BorderFactory.createEmptyBorder());
  searchButton.setContentAreaFilled(false);
  searchButton.addActionListener(startNewSearch);
  progressBar=new JProgressBar();
  progressBar.setString("String_Node_Str");
  progressBar.setStringPainted(true);
  progressBar.setBorder(BorderFactory.createLineBorder(AMAZON_SEARCH_DARK_BLUE,2));
  final TreeCriteriaEditor treeCriteriaEditor=new TreeCriteriaEditor(TreeCriterion.ALL_CRITERIA);
  treeCriteriaEditor.addPropertyChangeListener("String_Node_Str",new ActiveCriteriaPropertyChangeListener());
  treeCriteriaEditor.setOpaque(false);
  treeCriteriaEditor.setBorder(new RoundedBorder(CLEAR,AMAZON_SEARCH_DARK_BLUE,AMAZON_SEARCH_LIGHT_BLUE,8,1));
  final JPanel editorPanel=new JPanel(new GridBagLayout());
  editorPanel.setBackground(AMAZON_SEARCH_DARK_BLUE);
  editorPanel.add(treeCriteriaEditor,new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,5,0,5),0,0));
  editorPanel.add(Box.createVerticalStrut(1),new GridBagConstraints(0,1,1,1,0.0,1.0,GridBagConstraints.CENTER,GridBagConstraints.VERTICAL,new Insets(0,0,0,0),0,0));
  final JPanel searchPanel=new GradientPanel(AMAZON_SEARCH_LIGHT_BLUE,AMAZON_SEARCH_DARK_BLUE,true);
  searchPanel.setLayout(new GridBagLayout());
  searchPanel.add(searchFieldLabel,new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,10,0,3),0,0));
  searchPanel.add(searchField,new GridBagConstraints(1,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
  searchPanel.add(searchButton,new GridBagConstraints(2,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,10),0,0));
  searchPanel.add(progressBar,new GridBagConstraints(3,0,1,1,1.0,1.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,10),0,0));
  searchPanel.add(filterFieldLabel,new GridBagConstraints(4,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
  searchPanel.add(filterField,new GridBagConstraints(5,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,10),0,0));
  searchPanel.add(Box.createVerticalStrut(65),new GridBagConstraints(6,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
  final EventList<Item> swingFilteredItemsList=GlazedListsSwing.swingThreadProxyList(filteredItemsList);
  treeList=new TreeList<Item>(swingFilteredItemsList,new ItemTreeFormat(treeCriteriaEditor.getActiveCriteria()),TreeList.NODES_START_EXPANDED);
  itemTableModel=new EventTableModel<Item>(treeList,new ItemTableFormat());
  itemTableSelectionModel=new EventSelectionModel<Item>(treeList);
  final JTable itemTable=new StripedTable(itemTableModel,null,itemTableSelectionModel);
  JScrollPane itemScrollPane=new JScrollPane(itemTable,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  itemScrollPane.setBorder(BorderFactory.createEmptyBorder());
  MacCornerScrollPaneLayoutManager.install(itemScrollPane);
  TableComparatorChooser.install(itemTable,sortedItemsList,TableComparatorChooser.MULTIPLE_COLUMN_KEYBOARD);
  ListConsistencyListener<Item> listConsistencyListener=ListConsistencyListener.install(treeList);
  listConsistencyListener.setPreviousElementTracked(false);
  final TreeTableSupport treeTableSupport=TreeTableSupport.install(itemTable,treeList,2);
  treeTableSupport.setDelegateRenderer(new TitleRenderer());
  final JPanel panel=new JPanel(new BorderLayout());
  panel.add(BorderLayout.NORTH,searchPanel);
  panel.add(BorderLayout.WEST,editorPanel);
  panel.add(BorderLayout.CENTER,itemScrollPane);
  return panel;
}

Fixed version (ground truth):
/** 
 * Construct a frame for search and browsing items from Amazon.
 */
private JPanel constructView(){
  final JLabel filterFieldLabel=new JLabel("String_Node_Str");
  filterFieldLabel.setFont(new Font("String_Node_Str",Font.BOLD,14));
  filterFieldLabel.setForeground(Color.WHITE);
  filterField=new JTextField(10);
  final SearchEngineTextFieldMatcherEditor<Item> filterFieldMatcherEditor=new SearchEngineTextFieldMatcherEditor<Item>(filterField,new ItemTextFilterator());
  final Set<SearchEngineTextMatcherEditor.Field<Item>> filterFields=new HashSet<SearchEngineTextMatcherEditor.Field<Item>>();
  filterFields.add(new SearchEngineTextMatcherEditor.Field<Item>("String_Node_Str",new TitleTextFilterator()));
  filterFields.add(new SearchEngineTextMatcherEditor.Field<Item>("String_Node_Str",new DirectorTextFilterator()));
  filterFieldMatcherEditor.setFields(filterFields);
  final SortedList<Item> sortedItemsList=new SortedList<Item>(itemEventList,null);
  final FilterList<Item> filteredItemsList=new FilterList<Item>(sortedItemsList,filterFieldMatcherEditor);
  final StartNewSearchActionListener startNewSearch=new StartNewSearchActionListener();
  final JLabel searchFieldLabel=new JLabel("String_Node_Str");
  searchFieldLabel.setFont(new Font("String_Node_Str",Font.BOLD,14));
  searchFieldLabel.setForeground(Color.WHITE);
  searchField=new JTextField(10);
  searchField.addActionListener(startNewSearch);
  final JButton searchButton=new JButton(GO);
  searchButton.setBorder(BorderFactory.createEmptyBorder());
  searchButton.setContentAreaFilled(false);
  searchButton.addActionListener(startNewSearch);
  progressBar=new JProgressBar();
  progressBar.setString("String_Node_Str");
  progressBar.setStringPainted(true);
  progressBar.setBorder(BorderFactory.createLineBorder(AMAZON_SEARCH_DARK_BLUE,2));
  final TreeCriteriaEditor treeCriteriaEditor=new TreeCriteriaEditor(TreeCriterion.ALL_CRITERIA);
  treeCriteriaEditor.addPropertyChangeListener("String_Node_Str",new ActiveCriteriaPropertyChangeListener());
  treeCriteriaEditor.setOpaque(false);
  treeCriteriaEditor.setBorder(new RoundedBorder(CLEAR,AMAZON_SEARCH_DARK_BLUE,AMAZON_SEARCH_LIGHT_BLUE,8,1));
  final JPanel editorPanel=new JPanel(new GridBagLayout());
  editorPanel.setBackground(AMAZON_SEARCH_DARK_BLUE);
  editorPanel.add(treeCriteriaEditor,new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,5,0,5),0,0));
  editorPanel.add(Box.createVerticalStrut(1),new GridBagConstraints(0,1,1,1,0.0,1.0,GridBagConstraints.CENTER,GridBagConstraints.VERTICAL,new Insets(0,0,0,0),0,0));
  final JPanel searchPanel=new GradientPanel(AMAZON_SEARCH_LIGHT_BLUE,AMAZON_SEARCH_DARK_BLUE,true);
  searchPanel.setLayout(new GridBagLayout());
  searchPanel.add(searchFieldLabel,new GridBagConstraints(0,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,10,0,3),0,0));
  searchPanel.add(searchField,new GridBagConstraints(1,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
  searchPanel.add(searchButton,new GridBagConstraints(2,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,10),0,0));
  searchPanel.add(progressBar,new GridBagConstraints(3,0,1,1,1.0,1.0,GridBagConstraints.CENTER,GridBagConstraints.HORIZONTAL,new Insets(0,0,0,10),0,0));
  searchPanel.add(filterFieldLabel,new GridBagConstraints(4,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
  searchPanel.add(filterField,new GridBagConstraints(5,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,10),0,0));
  searchPanel.add(Box.createVerticalStrut(65),new GridBagConstraints(6,0,1,1,0.0,0.0,GridBagConstraints.CENTER,GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
  final EventList<Item> swingFilteredItemsList=GlazedListsSwing.swingThreadProxyList(filteredItemsList);
  treeList=new TreeList<Item>(swingFilteredItemsList,new ItemTreeFormat(treeCriteriaEditor.getActiveCriteria()),TreeList.NODES_START_EXPANDED);
  itemTableModel=new EventTableModel<Item>(treeList,new ItemTableFormat());
  itemTableSelectionModel=new EventSelectionModel<Item>(treeList);
  final JTable itemTable=new StripedTable(itemTableModel,null,itemTableSelectionModel);
  JScrollPane itemScrollPane=new JScrollPane(itemTable,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  itemScrollPane.setBorder(BorderFactory.createEmptyBorder());
  MacCornerScrollPaneLayoutManager.install(itemScrollPane);
  TableComparatorChooser.install(itemTable,sortedItemsList,TableComparatorChooser.MULTIPLE_COLUMN_KEYBOARD);
  ListConsistencyListener<Item> listConsistencyListener=ListConsistencyListener.install(treeList);
  listConsistencyListener.setPreviousElementTracked(false);
  final TreeTableSupport treeTableSupport=TreeTableSupport.install(itemTable,treeList,2);
  treeTableSupport.setDelegateRenderer(new TitleRenderer());
  final JPanel panel=new JPanel(new BorderLayout());
  panel.add(BorderLayout.NORTH,searchPanel);
  panel.add(BorderLayout.WEST,editorPanel);
  panel.add(BorderLayout.CENTER,itemScrollPane);
  return panel;
}