Object path = filechooser.getCurrentDirectory(); if (path != null) parentPath = path.toString().substring(path.toString().lastIndexOf("/"));
  public void installUI(JComponent c)  {    if (c instanceof JFileChooser)      {	JFileChooser fc = (JFileChooser) c;	fc.resetChoosableFileFilters();	createModel();	clearIconCache();	installDefaults(fc);	installComponents(fc);	installListeners(fc);      }  }