title: JFileChooser within a JTable
body: <p>all I'm attempting to create a new component to go inside of a JTable. It consists of a JTextfield that when clicked on spawns a JFileChooser so the user can browser the file system and select the file that the want and then populate the field with the path to that file. So far I've gotten to the point where I can have the text field fill in the editor but when I click it the FilecChooser doesn't spawn. Anyone have an idea of what I'm doing wrong here?</p>
  
  <pre><code>public class FileBrowserCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
  
  private static final long serialVersionUID = 1L;
  private Component frame;
  JButton button;
  JTextField textField;
  String path;
  JFileChooser fc;
  protected static final String EDIT = "edit";
  
  public FileBrowserCellEditor(Component frame){
      this.frame = frame;
  
      textField = new JTextField();
      textField.setActionCommand(EDIT);
      textField.addActionListener(this);
  
      fc = new JFileChooser();
  }
  
  @Override
  public Object getCellEditorValue() {
  
      return path;
  
  }
  
  @Override
  public Component getTableCellEditorComponent(JTable arg0, Object arg1,
          boolean arg2, int arg3, int arg4) {
  
      return textField;
  }
  
  @Override
  public void actionPerformed(ActionEvent e) {
  
      //Debug
      System.out.println(e.getActionCommand());
  
      if (EDIT.equals(e.getActionCommand())) {
          //The user has clicked the cell, so
          //bring up the dialog.
          textField.setText(path);
          fc.showOpenDialog(frame);
  
          fireEditingStopped(); //Make the renderer reappear.
  
      } else { //User pressed dialog's "OK" button.
          //currentColor = colorChooser.getColor();
  
              File file = fc.getSelectedFile();
              this.path = file.getAbsolutePath();
  
      }
  
  }
  
  }
  </code></pre>