if (result == APPROVE_OPTION) m_LastFilter = (ExtensionFileFilter) getFileFilter();
if (result == APPROVE_OPTION) { m_LastFilter = getFileFilter(); configureCurrentConverter(); }
  public int showSaveDialog(Component parent) {    m_DialogType       = SAVER_DIALOG;    m_CurrentConverter = null;        initGUI();        int result = super.showSaveDialog(parent);        if (result == APPROVE_OPTION)      m_LastFilter = (ExtensionFileFilter) getFileFilter();        m_DialogType = UNHANDLED_DIALOG;    removePropertyChangeListener(m_Listener);    // overwrite the file?    if (    (result == APPROVE_OPTION) 	 && (getOverwriteWarning()) 	 && (getSelectedFile().exists()) ) {      int retVal = JOptionPane.showConfirmDialog(	  	  parent, 	  	  "The file '" 	  	  + getSelectedFile() 	  	  + "' already exists - overwrite it?");      if (retVal == JOptionPane.OK_OPTION)	result = APPROVE_OPTION;      else if (retVal == JOptionPane.NO_OPTION)	result = showSaveDialog(parent);      else	result = CANCEL_OPTION;    }        return result;  }