Program: 131075
Project: 131075
Buggy source:
private S3FileChooser(Frame frame){
  super(frame,"String_Node_Str",true);
  final JButton btnLoad=new JButton("String_Node_Str");
  btnLoad.setActionCommand("String_Node_Str");
  btnLoad.addActionListener(this);
  getRootPane().setDefaultButton(btnLoad);
  JButton btnCancel=new JButton("String_Node_Str");
  btnCancel.addActionListener(this);
  s3ListModel.clear();
  s3List=new JList(s3ListModel);
  s3List.addMouseListener(new MouseAdapter(){
    @Override public void mouseClicked(    MouseEvent mouseEvent){
      if (mouseEvent.getClickCount() == 2) {
        handleDoubleClickEvent();
      }
 else       if (mouseEvent.getClickCount() == 1) {
        String selected=((S3ListModel)s3List.getSelectedValue()).getPath();
        if (selected.contains("String_Node_Str")) {
          btnLoad.setEnabled(false);
        }
 else {
          btnLoad.setEnabled(true);
        }
      }
    }
  }
);
  s3List.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
  s3List.setLayoutOrientation(JList.VERTICAL);
  s3List.setVisibleRowCount(-1);
  s3List.setCellRenderer(new DefaultListCellRenderer(){
    @Override public Component getListCellRendererComponent(    JList list,    Object value,    int index,    boolean isSelected,    boolean cellHasFocus){
      JLabel label=(JLabel)super.getListCellRendererComponent(list,value,index,isSelected,cellHasFocus);
      S3ListModel model=(S3ListModel)value;
      if (model.getFileType() == S3ListModel.FILE_DIR) {
        label.setIcon(UIManager.getIcon("String_Node_Str"));
      }
 else       if (model.getFileType() == S3ListModel.FILE_DOC) {
        label.setIcon(UIManager.getIcon("String_Node_Str"));
      }
      label.setText(model.getAlias());
      return label;
    }
  }
);
  JScrollPane listScroller=new JScrollPane(s3List);
  listScroller.setPreferredSize(new Dimension(400,480));
  listScroller.setAlignmentX(LEFT_ALIGNMENT);
  JPanel listPane=new JPanel();
  listPane.setLayout(new BoxLayout(listPane,BoxLayout.PAGE_AXIS));
  listPane.add(Box.createRigidArea(new Dimension(0,5)));
  listPane.add(listScroller);
  listPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
  JPanel buttonPane=new JPanel();
  buttonPane.setLayout(new BoxLayout(buttonPane,BoxLayout.LINE_AXIS));
  buttonPane.setBorder(BorderFactory.createEmptyBorder(0,10,10,10));
  buttonPane.add(loadingLabel);
  buttonPane.add(Box.createHorizontalGlue());
  buttonPane.add(btnCancel);
  buttonPane.add(Box.createRigidArea(new Dimension(10,0)));
  buttonPane.add(btnLoad);
  Container contentPane=getContentPane();
  contentPane.add(getToolbar(),BorderLayout.PAGE_START);
  contentPane.add(listPane,BorderLayout.CENTER);
  contentPane.add(buttonPane,BorderLayout.PAGE_END);
  pack();
  setLocationRelativeTo(frame);
  SwingWorker worker=new SwingWorker<Void,Void>(){
    @Override public Void doInBackground(){
      reloadContents();
      return null;
    }
  }
;
  worker.execute();
}

Fixed version (ground truth):
private S3FileChooser(Frame frame){
  super(frame,"String_Node_Str",true);
  final JButton btnLoad=new JButton("String_Node_Str");
  btnLoad.setActionCommand("String_Node_Str");
  btnLoad.addActionListener(this);
  getRootPane().setDefaultButton(btnLoad);
  JButton btnCancel=new JButton("String_Node_Str");
  btnCancel.addActionListener(this);
  s3ListModel.clear();
  s3List=new JList(s3ListModel);
  s3List.addMouseListener(new MouseAdapter(){
    @Override public void mouseClicked(    MouseEvent mouseEvent){
      if (mouseEvent.getClickCount() == 2) {
        handleDoubleClickEvent();
      }
 else       if (mouseEvent.getClickCount() == 1) {
        String selected=((S3ListModel)s3List.getSelectedValue()).getPath();
        if (selected.contains("String_Node_Str")) {
          btnLoad.setEnabled(false);
        }
 else {
          btnLoad.setEnabled(true);
        }
      }
    }
  }
);
  s3List.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
  s3List.setLayoutOrientation(JList.VERTICAL);
  s3List.setVisibleRowCount(-1);
  s3List.setCellRenderer(new DefaultListCellRenderer(){
    @Override public Component getListCellRendererComponent(    JList list,    Object value,    int index,    boolean isSelected,    boolean cellHasFocus){
      JLabel label=(JLabel)super.getListCellRendererComponent(list,value,index,isSelected,cellHasFocus);
      S3ListModel model=(S3ListModel)value;
      if (model.getFileType() == S3ListModel.FILE_DIR) {
        label.setIcon(UIManager.getIcon("String_Node_Str"));
      }
 else       if (model.getFileType() == S3ListModel.FILE_DOC) {
        label.setIcon(UIManager.getIcon("String_Node_Str"));
      }
      label.setText(model.getAlias());
      return label;
    }
  }
);
  JScrollPane listScroller=new JScrollPane(s3List);
  listScroller.setPreferredSize(new Dimension(400,480));
  listScroller.setAlignmentX(LEFT_ALIGNMENT);
  JPanel listPane=new JPanel();
  listPane.setLayout(new BoxLayout(listPane,BoxLayout.PAGE_AXIS));
  listPane.add(Box.createRigidArea(new Dimension(0,5)));
  listPane.add(listScroller);
  listPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
  JPanel buttonPane=new JPanel();
  buttonPane.setLayout(new BoxLayout(buttonPane,BoxLayout.LINE_AXIS));
  buttonPane.setBorder(BorderFactory.createEmptyBorder(0,10,10,10));
  buttonPane.add(loadingLabel);
  buttonPane.add(Box.createHorizontalGlue());
  buttonPane.add(btnCancel);
  buttonPane.add(Box.createRigidArea(new Dimension(10,0)));
  buttonPane.add(btnLoad);
  Container contentPane=getContentPane();
  contentPane.add(getToolbar(),BorderLayout.PAGE_START);
  contentPane.add(listPane,BorderLayout.CENTER);
  contentPane.add(buttonPane,BorderLayout.PAGE_END);
  pack();
  setLocationRelativeTo(frame);
  reloadContents();
}