JFileChooser chooser = new JFileChooser(_file.getParent());
JFileChooser chooser = getFileChooser();  chooser.setCurrentDirectory(_file);
	public static String showFileDialog(View view, String file, int type)	{		File _file = new File(file);		JFileChooser chooser = new JFileChooser(_file.getParent());		chooser.setSelectedFile(_file);		chooser.setDialogType(type);		chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);		if("on".equals(jEdit.getProperty("filefilters")))		{			REFileFilter[] filters = jEdit.getFileFilters();			for(int i = 0; i < filters.length; i++)			{				chooser.addChoosableFileFilter(filters[i]);			}				chooser.setFileFilter(chooser.getAcceptAllFileFilter());		}		int retVal = chooser.showDialog(view,null);		if(retVal == JFileChooser.APPROVE_OPTION)			return chooser.getSelectedFile().getAbsolutePath();		else			return null;	}