code: protected void openFileChooser()
     {
        if (m_model.getShowDialog())
        {
           if (m_fileChooser.showSaveDialog(m_parent) == JFileChooser.APPROVE_OPTION)
           {
              FileNameExtensionFilter filter = (FileNameExtensionFilter) m_fileChooser.getFileFilter();
              String description = filter.getDescription();
              m_model.setType(description.substring(0, description.indexOf(' ')));
              m_model.setFile(null);
              m_model.setFile(m_fileChooser.getSelectedFile());
           }
           m_model.setShowDialog(false);
        }
     }
docs: Command to open the file chooser.