filechooser.setSelectedFile(f);
    public void actionPerformed(ActionEvent e)    {      Object obj = new String(parentPath + getFileName());      if (obj != null)        {          File f = filechooser.getFileSystemView().createFileObject(                                                                    obj.toString());          if (filechooser.isTraversable(f)              && filechooser.isDirectorySelectionEnabled())            filechooser.setCurrentDirectory(f);          else            {              filechooser.setSelectedFile(f);              filechooser.approveSelection();              closeDialog();            }        }    }