Program: 52616
Project: 52616
Buggy source:
/** 
 * Creates file list and all related components.
 */
protected void createFileList(){
  fileList=new WebFileList();
  fileList.setGenerateThumbnails(true);
  fileList.setDropMode(DropMode.ON);
  fileList.setEditable(true);
  fileList.setPreferredColumnCount(3);
  fileList.setPreferredRowCount(5);
  fileList.setTransferHandler(new FilesLocateDropHandler(UpdateSource.list));
  fileList.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0),"String_Node_Str");
  fileList.getActionMap().put("String_Node_Str",new AbstractAction(){
    @Override public boolean isEnabled(){
      return fileList.getSelectedIndex() != -1;
    }
    @Override public void actionPerformed(    final ActionEvent e){
      File file=fileList.getSelectedFile();
      if (file.isDirectory()) {
        updateCurrentFolder(file,UpdateSource.list);
      }
    }
  }
);
  fileList.addMouseListener(new MouseAdapter(){
    @Override public void mouseClicked(    final MouseEvent e){
      if (SwingUtilities.isLeftMouseButton(e) && e.getClickCount() % 2 == 0 && fileList.getSelectedIndex() != -1) {
        final File file=fileList.getSelectedFile();
        if (file.isDirectory()) {
          updateCurrentFolder(file,UpdateSource.list);
        }
 else {
          fireApproveAction(new ActionEvent(fileList,e.getID(),"String_Node_Str",e.getWhen(),e.getModifiers()));
        }
      }
    }
  }
);
  fileList.addListSelectionListener(new ListSelectionListener(){
    @Override public void valueChanged(    final ListSelectionEvent e){
      updateSelectedFilesField();
    }
  }
);
  fileList.addListEditListener(new ListEditAdapter(){
    @Override public void editFinished(    final int index,    final Object oldValue,    final Object newValue){
      final File file=((FileElement)newValue).getFile();
      reloadCurrentFolder();
      fileList.setSelectedFile(file);
    }
  }
);
  fileListScroll=fileList.getScrollView();
  fileListScroll.setHorizontalScrollBarPolicy(WebScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  fileListScroll.setVerticalScrollBarPolicy(WebScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
}

Fixed version (ground truth):
/** 
 * Creates file list and all related components.
 */
protected void createFileList(){
  fileList=new WebFileList();
  fileList.setGenerateThumbnails(true);
  fileList.setDropMode(DropMode.ON);
  fileList.setEditable(true);
  fileList.setPreferredColumnCount(3);
  fileList.setPreferredRowCount(5);
  fileList.setTransferHandler(new FilesLocateDropHandler(UpdateSource.list));
  fileList.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0),"String_Node_Str");
  fileList.getActionMap().put("String_Node_Str",new AbstractAction(){
    @Override public boolean isEnabled(){
      return fileList.getSelectedIndex() != -1;
    }
    @Override public void actionPerformed(    final ActionEvent e){
      final File file=fileList.getSelectedFile();
      if (file.isDirectory()) {
        updateCurrentFolder(file,UpdateSource.list);
      }
    }
  }
);
  fileList.addMouseListener(new MouseAdapter(){
    @Override public void mouseClicked(    final MouseEvent e){
      if (SwingUtilities.isLeftMouseButton(e) && e.getClickCount() % 2 == 0 && fileList.getSelectedIndex() != -1) {
        final File file=fileList.getSelectedFile();
        if (file.isDirectory()) {
          updateCurrentFolder(file,UpdateSource.list);
        }
 else {
          fireApproveAction(new ActionEvent(fileList,e.getID(),"String_Node_Str",e.getWhen(),e.getModifiers()));
        }
      }
    }
  }
);
  fileList.addListSelectionListener(new ListSelectionListener(){
    @Override public void valueChanged(    final ListSelectionEvent e){
      updateSelectedFilesField();
    }
  }
);
  fileList.addListEditListener(new ListEditAdapter(){
    @Override public void editFinished(    final int index,    final Object oldValue,    final Object newValue){
      final File file=((FileElement)newValue).getFile();
      reloadCurrentFolder();
      fileList.setSelectedFile(file);
    }
  }
);
  fileListScroll=fileList.getScrollView();
  fileListScroll.setHorizontalScrollBarPolicy(WebScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
  fileListScroll.setVerticalScrollBarPolicy(WebScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
}