else completeEditing();
    public void mouseClicked(MouseEvent e)    {      if (e.getClickCount() == 1)        {          int index = list.locationToIndex(e.getPoint());          File[] sf = fc.getSelectedFiles();          if ((!fc.isMultiSelectionEnabled() || (sf != null && sf.length <= 1))              && index >= 0 && editFile == null && list.isSelectedIndex(index))            {              Object tmp = list.getModel().getElementAt(index);              if (lastSelected != null && lastSelected.equals(tmp))                editFile(index);              lastSelected = tmp;            }          else if (editFile != null)            {              completeEditing();              editFile = null;              lastSelected = null;            }        }    }