panel.add(new JScrollPane(fileList)); return panel;
} else { fileList.setModel(getModel()); fileListPanel.removeAll(); scrollPane.setViewport(new JViewport()); scrollPane.getViewport().setView(fileList); } fileListPanel.add(scrollPane);  return fileListPanel;
  protected JPanel createList(JFileChooser fc)  {    JPanel panel = new JPanel(new BorderLayout());    fileList = new JList(getModel());    fileList.setLayoutOrientation(JList.VERTICAL_WRAP);    fileList.setVisibleRowCount(0);    fileList.setCellRenderer(new FileRenderer());    panel.add(new JScrollPane(fileList));    return panel;      }